Changeset View
Changeset View
Standalone View
Standalone View
source/gui/IGUIButtonBehavior.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
protected: | protected: | ||||
/** | /** | ||||
* @see IGUIObject#ResetStates() | * @see IGUIObject#ResetStates() | ||||
*/ | */ | ||||
virtual void ResetStates() | virtual void ResetStates() | ||||
{ | { | ||||
// Notify the gui that we aren't hovered anymore | // Notify the gui that we aren't hovered anymore | ||||
UpdateMouseOver(NULL); | UpdateMouseOver(nullptr); | ||||
m_Pressed = false; | m_Pressed = false; | ||||
m_PressedRight = false; | m_PressedRight = false; | ||||
} | } | ||||
/** | /** | ||||
* 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... | ||||
* in between those two steps you can actually leave the button | * in between those two steps you can actually leave the button | ||||
* area, as long as you release it within the button area... Anyway | * area, as long as you release it within the button area... Anyway | ||||
* this lets us know we are done with step one (clicking). | * this lets us know we are done with step one (clicking). | ||||
*/ | */ | ||||
bool m_Pressed; | bool m_Pressed; | ||||
bool m_PressedRight; | bool m_PressedRight; | ||||
}; | }; | ||||
#endif // INCLUDED_IGUIBUTTONBEHAVIOR | #endif // INCLUDED_IGUIBUTTONBEHAVIOR |
Wildfire Games · Phabricator