TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::CommandID Struct Reference

Handle to a registered command, stable for the manager's lifetime. More...

#include <gui_core/input/gui_command_manager.h>

Public Member Functions

constexpr bool IsValid () const
constexpr operator bool () const
constexpr bool operator== (const CommandID &) const =default

Static Public Member Functions

static constexpr CommandID Invalid ()

Public Attributes

uint32_t value = 0

Detailed Description

Handle to a registered command, stable for the manager's lifetime.

The zero value is invalid, so structs holding one can be zero-initialized; real IDs start at 1.

Member Function Documentation

◆ IsValid()

bool tachyon::CommandID::IsValid ( ) const
inlineconstexpr

◆ operator bool()

tachyon::CommandID::operator bool ( ) const
inlineexplicitconstexpr

◆ operator==()

bool tachyon::CommandID::operator== ( const CommandID & ) const
constexprdefault

◆ Invalid()

constexpr CommandID tachyon::CommandID::Invalid ( )
inlinestaticconstexpr

Member Data Documentation

◆ value

uint32_t tachyon::CommandID::value = 0

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