32 #ifndef INCLUDED_GUIUTIL
33 #define INCLUDED_GUIUTIL
102 template <
typename T=
int>
137 const T &Value,
const bool &SkipMessage=
false);
148 const CGUI &GUIinstance,
const CStr& Object,
149 const CStr& Setting,
T &Value)
174 CGUI &GUIinstance,
const CStr& Object,
175 const CStr& Setting,
const T &Value,
176 const bool& SkipMessage=
false)
188 return SetSetting(pObject, Setting, Value, SkipMessage);
204 return (prim.
IsEmpty() ? sec : prim);
218 return ((prim!=
CColor())?(prim):(sec));
236 return __ParseString<T>(Value, tOutput);
239 static bool ParseColor(
const CStrW& Value,
CColor &tOutput,
float DefaultAlpha);
280 (pObject->*pFunc)(Argument);
283 vector_pObjects::iterator it;
300 (pObject->*pFunc)(Argument);
303 vector_pObjects::iterator it;
323 vector_pObjects::iterator it;
345 static CStr strHidden(
"hidden");
346 static CStr strEnabled(
"enabled");
347 static CStr strGhost(
"ghost");
359 bool enabled =
false;
bool ObjectExists(const CStr &Name) const
Checks if object exists and return true or false accordingly.
void(IGUIObject::* void_Object_pFunction_argT)(const T &arg)
static IGUIObject * GetObjectPointer(CGUI &GUIinstance, const CStr &Object)
Get object pointer.
CMatrix3D GetDefaultGuiMatrix()
Base class to only the class GUI.
void(IGUIObject::* void_Object_pFunction)()
static PSRETURN GetSetting(const CGUI &GUIinstance, const CStr &Object, const CStr &Setting, T &Value)
Retrieves a setting by settings name and object name.
static void HandleMessage(IGUIObject *pObject, SGUIMessage &message)
static bool ParseString(const CStrW &Value, T &tOutput)
Sets a value by setting and object name using a real datatype as input.
static PSRETURN GetSetting(const IGUIObject *pObject, const CStr &Setting, T &Value)
Retrieves a setting by name from object pointer.
const PSRETURN PSRETURN_GUI_NullObjectProvided
static void RecurseObject(int RR, IGUIObject *pObject, void_Object_pFunction pFunc)
With no argument.
static CColor FallBackColor(const CColor &prim, const CColor &sec)
Same principle as FallBackSprite.
Base settings, all objects possess these settings in their m_BaseSettings Instructions can be found i...
bool __ParseString(const CStrW &Value, T &tOutput)
static const CGUISpriteInstance & FallBackSprite(const CGUISpriteInstance &prim, const CGUISpriteInstance &sec)
This will return the value of the first sprite if it's not null, if it is null, it will return the va...
The main object that represents a whole GUI page.
static void QueryResetting(IGUIObject *pObject)
Wrapper for ResetStates.
Includes static functions that needs one template argument.
void(IGUIObject::* void_Object_pFunction_argRefT)(T &arg)
vector_pObjects::iterator ChildrenItEnd()
static bool ParseColor(const CStrW &Value, CColor &tOutput, float DefaultAlpha)
#define T(string_literal)
static PSRETURN SetSetting(CGUI &GUIinstance, const CStr &Object, const CStr &Setting, const T &Value, const bool &SkipMessage=false)
Sets a value by setting and object name using a real datatype as input.
static PSRETURN SetSetting(IGUIObject *pObject, const CStr &Setting, const T &Value, const bool &SkipMessage=false)
Sets a value by name using a real datatype as input.
vector_pObjects::iterator ChildrenItBegin()
static void RecurseObject(int RR, IGUIObject *pObject, void_Object_pFunction_argT pFunc, const T &Argument)
If you want to call a IGUIObject-function on not just an object, but also on ALL of their children yo...
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
static bool CheckIfRestricted(int RR, IGUIObject *pObject)
Checks restrictions for the iteration, for instance if you tell the recursor to avoid all hidden obje...
static void RecurseObject(int RR, IGUIObject *pObject, void_Object_pFunction_argRefT pFunc, T &Argument)
Argument is reference.
String class, substitute for CStr, but that parses the tags and builds up a list of all text that wil...
static PSRETURN GetSettingPointer(const IGUIObject *pObject, const CStr &Setting, T *&Value)
Client Area is a rectangle relative to a parent rectangle.
void CheckType(const IGUIObject *obj, const CStr &setting)