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

Go to the source code of this file.

Namespaces

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

Enumerations

enum class  SDOM::IconIndex : int {
  SDOM::Hamburger = 54 , SDOM::Arrow_Left_Raised , SDOM::Arrow_Right_Raised , SDOM::Arrow_Up_Raised ,
  SDOM::Arrow_Down_Raised , SDOM::Arrow_Left_Depressed , SDOM::Arrow_Right_Depressed , SDOM::Arrow_Up_Depressed ,
  SDOM::Arrow_Down_Depressed , SDOM::Knob_Horizontal , SDOM::Knob_Vertical , SDOM::Slider_Tick ,
  SDOM::HSlider_Rail , SDOM::VSlider_Rail , SDOM::Checkbox_Empty , SDOM::Checkbox_Checked ,
  SDOM::Checkbox_X , SDOM::Radiobox_Unselected , SDOM::Radiobox_Selected , SDOM::HProgress_Left ,
  SDOM::HProgress_Empty , SDOM::HProgress_Thumb , SDOM::HProgress_Right , SDOM::VProgress_Top ,
  SDOM::VProgress_Empty , SDOM::VProgress_Thumb , SDOM::VProgress_Bottom
}
 

Functions

static std::optional< std::string > SDOM::icon_name_from_index (IconIndex idx)
 
static std::optional< IconIndexSDOM::icon_index_from_name (const std::string &name)
 

Variables

static const std::unordered_map< int, std::string > SDOM::icon_index_to_string
 
static const std::unordered_map< std::string, int > SDOM::icon_string_to_index