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

Mixin interface for objects that expose an icon name. More...

#include "HNWithIcon.h"

Inheritance diagram for HNWithIcon:
Inheritance graph
[legend]

Public Member Functions

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

Detailed Description

Mixin interface for objects that expose an icon name.

Constructor & Destructor Documentation

◆ ~HNWithIcon()

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

◆ icon()

const std::string & icon ( ) const
inlinenoexcept

Returns the current icon name of the object.

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

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