1.9
Public Member Functions | Static Public Attributes | List of all members
EnumStrings< T > Struct Template Reference

When using enum_to_string() and enum_from_string(), this type needs to be defined and specialized to include the data for enum string conversions. More...

Public Member Functions

EGT_API const std::pair< AlignFlag, char const * > data [10]
 
EGT_API const std::pair< PixelFormat, char const * > data [11]
 Enum string conversion map. More...
 
EGT_API const std::pair< Widget::Flag, char const * > data [15]
 Enum string conversion map. More...
 
EGT_API const std::pair< HVBitField, char const * > data [1]
 
EGT_API const std::pair< Theme::FillFlag, char const * > data [2]
 Enum string conversion map. More...
 
EGT_API const std::pair< experimental::Radial::RadialFlag, char const * > data [3]
 Enum string conversion map. More...
 
EGT_API const std::pair< HorizontalBitField, char const * > data [3]
 Enum string conversion map. More...
 
EGT_API const std::pair< VerticalBitField, char const * > data [3]
 
EGT_API const std::pair< ExpandBitField, char const * > data [3]
 
EGT_API const std::pair< ProgressBarStyle, char const * > data [4]
 Enum string conversion map. More...
 
EGT_API const std::pair< Orientation, char const * > data [4]
 Enum string conversion map. More...
 
EGT_API const std::pair< Theme::BorderFlag, char const * > data [5]
 Enum string conversion map. More...
 
EGT_API const std::pair< Justification, char const * > data [5]
 Enum string conversion map. More...
 
EGT_API const std::pair< WindowHint, char const * > data [5]
 Enum string conversion map. More...
 
EGT_API const std::pair< SliderBase::SliderFlag, char const * > data [7]
 Enum string conversion map. More...
 

Static Public Attributes

static const std::pair< T, char const * > data []
 Enum string conversion map. More...
 

Detailed Description

template<class T>
struct egt::v1::detail::EnumStrings< T >

When using enum_to_string() and enum_from_string(), this type needs to be defined and specialized to include the data for enum string conversions.

template<>
const std::pair<Pointer::Button, char const*> detail::EnumStrings<Pointer::Button>::data[] =
{
};
std::ostream& operator<<(std::ostream& os, const Pointer::Button& btn)
{
return os << detail::enum_to_string(btn);
}
constexpr const char * enum_to_string(T const &e)
Convert an enum to a string.
Definition: enum.h:55
EGT_API std::ostream & operator<<(std::ostream &os, const Color &color)
Overloaded std::ostream insertion operator.
Button
Definitions for pointer buttons.
Definition: event.h:84
static const std::pair< T, char const * > data[]
Enum string conversion map.
Definition: enum.h:50

Member Function Documentation

◆ data() [1/15]

EGT_API const std::pair< AlignFlag, char const * > data

◆ data() [2/15]

EGT_API const std::pair< PixelFormat, char const * > data

Enum string conversion map.

◆ data() [3/15]

EGT_API const std::pair< Widget::Flag, char const * > data

Enum string conversion map.

◆ data() [4/15]

EGT_API const std::pair< HVBitField, char const * > data

◆ data() [5/15]

EGT_API const std::pair< Theme::FillFlag, char const * > data

Enum string conversion map.

◆ data() [6/15]

EGT_API const std::pair< experimental::Radial::RadialFlag, char const * > data

Enum string conversion map.

◆ data() [7/15]

EGT_API const std::pair< HorizontalBitField, char const * > data

Enum string conversion map.

◆ data() [8/15]

EGT_API const std::pair< VerticalBitField, char const * > data

◆ data() [9/15]

EGT_API const std::pair< ExpandBitField, char const * > data

◆ data() [10/15]

EGT_API const std::pair< ProgressBarStyle, char const * > data

Enum string conversion map.

◆ data() [11/15]

EGT_API const std::pair< Orientation, char const * > data

Enum string conversion map.

◆ data() [12/15]

EGT_API const std::pair< Theme::BorderFlag, char const * > data

Enum string conversion map.

◆ data() [13/15]

EGT_API const std::pair< Justification, char const * > data

Enum string conversion map.

◆ data() [14/15]

EGT_API const std::pair< WindowHint, char const * > data

Enum string conversion map.

◆ data() [15/15]

EGT_API const std::pair< SliderBase::SliderFlag, char const * > data

Enum string conversion map.

Member Data Documentation

◆ data

const std::pair<T, char const*> data[]
static

Enum string conversion map.