Heaven v0.1.0-1
C++ global-menu library for Wayland sessions
Loading...
Searching...
No Matches
Public Member Functions
HNWithChildren Class Reference

Mixin interface for objects that can host child objects. More...

#include "HNWithChildren.h"

Inheritance diagram for HNWithChildren:
Inheritance graph
[legend]

Public Member Functions

const std::list< HNObject * > & children () const noexcept
 Returns the ordered list of child objects.
 
virtual ~HNWithChildren () noexcept=default
 Virtual destructor.
 

Detailed Description

Mixin interface for objects that can host child objects.

Objects inheriting this interface (such as HNTopbar and HNMenu) keep an ordered list of children. The order reflects the order in which items should be displayed in the bar.

Constructor & Destructor Documentation

◆ ~HNWithChildren()

virtual ~HNWithChildren ( )
virtualdefaultnoexcept

Virtual destructor.

Declared virtual so this mixin is polymorphic, enabling safe cross-casts (via dynamic_cast) between the different base subobjects of a concrete object.

Member Function Documentation

◆ children()

const std::list< HNObject * > & children ( ) const
inlinenoexcept

Returns the ordered list of child objects.

Returns
Const reference to the list of children, in display order.

The documentation for this class was generated from the following file: