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

Mixin interface for objects that can be enabled or disabled. More...

#include "HNWithEnabled.h"

Inheritance diagram for HNWithEnabled:
Inheritance graph
[legend]

Public Member Functions

bool enabled () const noexcept
 Returns whether the object is currently enabled.
 
virtual ~HNWithEnabled () noexcept=default
 Virtual destructor.
 

Detailed Description

Mixin interface for objects that can be enabled or disabled.

A disabled object is typically rendered as grayed-out and does not react to user interaction.

Constructor & Destructor Documentation

◆ ~HNWithEnabled()

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

◆ enabled()

bool enabled ( ) const
inlinenoexcept

Returns whether the object is currently enabled.

Returns
true if the object is enabled, false otherwise.

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