Changeset View
Changeset View
Standalone View
Standalone View
source/gui/GUIbase.h
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | |||||
// Typedefs | // Typedefs | ||||
typedef std::map<CStr, IGUIObject*> map_pObjects; | typedef std::map<CStr, IGUIObject*> map_pObjects; | ||||
typedef std::vector<IGUIObject*> vector_pObjects; | typedef std::vector<IGUIObject*> vector_pObjects; | ||||
// Icon, you create them in the XML file with root element <setup> | // Icon, you create them in the XML file with root element <setup> | ||||
// you use them in text owned by different objects... Such as CText. | // you use them in text owned by different objects... Such as CText. | ||||
struct SGUIIcon | struct SGUIIcon | ||||
{ | { | ||||
// This struct represents an immutable type, so ensure to avoid copying the strings. | |||||
NONCOPYABLE(SGUIIcon); | |||||
MOVABLE(SGUIIcon); | |||||
SGUIIcon() : m_CellID(0) {} | SGUIIcon() : m_CellID(0) {} | ||||
// Sprite name of icon | // Sprite name of icon | ||||
CStr m_SpriteName; | CStr m_SpriteName; | ||||
// Size | // Size | ||||
CSize m_Size; | CSize m_Size; | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator