SDOM - Simple SDL Document Object Model
A lightweight, extensible Document Object Model for SDL-based applications.
Loading...
Searching...
No Matches
SDOM_IButtonObject.hpp File Reference
#include <string>
#include <unordered_map>
#include <optional>
#include <SDOM/SDOM_IconIndex.hpp>
#include <algorithm>
#include <cctype>

Go to the source code of this file.

Classes

class  SDOM::IButtonObject
 

Namespaces

namespace  SDOM
 Contains all core classes and utilities for the SDOM library.
 

Enumerations

enum class  SDOM::ButtonState : int {
  SDOM::Inactive = 0 , SDOM::Active , SDOM::Mixed , SDOM::Disabled ,
  SDOM::Released = Inactive , SDOM::Unchecked = Inactive , SDOM::Clear = Inactive , SDOM::Up = Inactive ,
  SDOM::Off = Inactive , SDOM::Pressed = Active , SDOM::Checked = Active , SDOM::Set = Active ,
  SDOM::Down = Active , SDOM::On = Active , SDOM::Indeterminate = Mixed , SDOM::Maybe = Mixed ,
  SDOM::Option = Mixed , SDOM::Faded = Disabled , SDOM::Gray = Disabled , SDOM::Grayed = Disabled ,
  SDOM::Grey = Disabled , SDOM::Greyed = Disabled , SDOM::ButtonState_MAX
}
 

Functions

static std::optional< std::string > SDOM::button_state_name_from_index (ButtonState idx)
 
static std::optional< ButtonStateSDOM::button_state_from_name (const std::string &name)
 

Variables

static const std::vector< std::pair< int, std::string > > SDOM::button_state_pairs
 
static const std::unordered_map< int, std::string > SDOM::button_state_to_string
 
static const std::unordered_map< std::string, int > SDOM::string_to_button_state