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

Mixin interface for objects that expose a textual title. More...

#include "HNWithTitle.h"

Inheritance diagram for HNWithTitle:
Inheritance graph
[legend]

Public Member Functions

const std::string & title () const noexcept
 Returns the current title of the object.
 
virtual ~HNWithTitle () noexcept=default
 Virtual destructor.
 

Detailed Description

Mixin interface for objects that expose a textual title.

Constructor & Destructor Documentation

◆ ~HNWithTitle()

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

◆ title()

const std::string & title ( ) const
inlinenoexcept

Returns the current title of the object.

Returns
Const reference to the title string (may be empty).

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