18 #include "precompiled.h"
79 : m_State(
ST_IN_MOTION), m_PreviousObject(NULL), m_PreviousTooltipName()
152 LOGERROR(L
"Cannot find tooltip named '%hs'", style.c_str());
160 && !usedObjectName.empty())
165 LOGERROR(L
"Cannot find object named '%hs' used by tooltip '%hs'", usedObjectName.c_str(), style.c_str());
180 debug_warn(L
"Failed to set tooltip mouse position");
189 debug_warn(L
"Failed to retrieve icon tooltip text");
195 debug_warn(L
"Failed to retrieve tooltip text");
199 text = text.UnescapeBackslashes();
219 LOGERROR(L
"Cannot find tooltip named '%hs'", style.c_str());
225 && !usedObjectName.empty())
230 LOGERROR(L
"Cannot find object named '%hs' used by tooltip '%hs'", usedObjectName.c_str(), style.c_str());
239 bool hideobject =
true;
260 LOGERROR(L
"Cannot find tooltip object named '%hs'", style.c_str());
const PSRETURN PSRETURN_OK
static PSRETURN GetSetting(const IGUIObject *pObject, const CStr &Setting, T &Value)
Retrieves a setting by name from object pointer.
Base settings, all objects possess these settings in their m_BaseSettings Instructions can be found i...
The main object that represents a whole GUI page.
Includes static functions that needs one template argument.
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
Made to represent screen positions and delta values.
bool SettingExists(const CStr &Setting) const
Checks if settings exists, only available for derived classes that has this set up, that's why the base class just returns false.
PSRETURN SetSetting(const CStr &Setting, const CStrW &Value, const bool &SkipMessage=false)
Set a setting by string, regardless of what type it is.
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.
#define debug_warn(expr)
display the error dialog with the given text.
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
IGUIObject * FindObjectByName(const CStr &Name) const
Returns the GUI object with the desired name, or NULL if no match is found,.
virtual void HandleMessage(SGUIMessage &Message)
This function is called with different messages for instance when the mouse enters the object...
virtual bool MouseOverIcon()
Test if mouse position is over an icon.