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

Mixin interface for objects that can be nested inside a parent. More...

#include "HNWithParent.h"

Inheritance diagram for HNWithParent:
Inheritance graph
[legend]
Collaboration diagram for HNWithParent:
Collaboration graph
[legend]

Public Member Functions

HNObjectparent () const noexcept
 Returns the current parent of this object.
 
virtual ~HNWithParent () noexcept=default
 Virtual destructor.
 

Detailed Description

Mixin interface for objects that can be nested inside a parent.

Objects inheriting this interface can be attached to an object implementing the HNWithChildren interface. The parent-child relationship is maintained by the bar library from the events sent by the client.

Constructor & Destructor Documentation

◆ ~HNWithParent()

virtual ~HNWithParent ( )
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

◆ parent()

HNObject * parent ( ) const
inlinenoexcept

Returns the current parent of this object.

Returns
Pointer to the parent object, or nullptr if the object is detached.

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