Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/ObjectBases/IGUIButtonBehavior.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | public: | ||||
* @param sprite Sprite drawn when not pressed, hovered or disabled | * @param sprite Sprite drawn when not pressed, hovered or disabled | ||||
* @param sprite_over Sprite drawn when m_MouseHovering is true | * @param sprite_over Sprite drawn when m_MouseHovering is true | ||||
* @param sprite_pressed Sprite drawn when m_Pressed is true | * @param sprite_pressed Sprite drawn when m_Pressed is true | ||||
* @param sprite_disabled Sprite drawn when "enabled" is false | * @param sprite_disabled Sprite drawn when "enabled" is false | ||||
*/ | */ | ||||
const CGUISpriteInstance& GetButtonSprite(const CGUISpriteInstance& sprite, const CGUISpriteInstance& sprite_over, const CGUISpriteInstance& sprite_pressed, const CGUISpriteInstance& sprite_disabled) const; | const CGUISpriteInstance& GetButtonSprite(const CGUISpriteInstance& sprite, const CGUISpriteInstance& sprite_over, const CGUISpriteInstance& sprite_pressed, const CGUISpriteInstance& sprite_disabled) const; | ||||
protected: | protected: | ||||
static const CStr EventNamePress; | |||||
static const CStr EventNamePressRight; | |||||
static const CStr EventNameDoublePress; | |||||
static const CStr EventNameDoublePressRight; | |||||
/** | /** | ||||
* @see IGUIObject#ResetStates() | * @see IGUIObject#ResetStates() | ||||
*/ | */ | ||||
virtual void ResetStates(); | virtual void ResetStates(); | ||||
/** | /** | ||||
* Everybody knows how a button works, you don't simply press it, | * Everybody knows how a button works, you don't simply press it, | ||||
* you have to first press the button, and then release it... | * you have to first press the button, and then release it... | ||||
Show All 23 Lines |
Wildfire Games · Phabricator