Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Appends button behaviours to the IGUIObject. More...
#include <IGUIButtonBehavior.h>
Public Member Functions | |
IGUIButtonBehavior (IGUIObject &pObject) | |
virtual | ~IGUIButtonBehavior () |
virtual void | HandleMessage (SGUIMessage &Message) |
const CGUISpriteInstance & | GetButtonSprite (const CGUISpriteInstance &sprite, const CGUISpriteInstance &sprite_over, const CGUISpriteInstance &sprite_pressed, const CGUISpriteInstance &sprite_disabled) const |
This is a function that lets a button being drawn, it regards if it's over, disabled, pressed and such. More... | |
Protected Member Functions | |
virtual void | ResetStates () |
Protected Attributes | |
bool | m_Pressed |
Everybody knows how a button works, you don't simply press it, you have to first press the button, and then release it... in between those two steps you can actually leave the button area, as long as you release it within the button area... Anyway this lets us know we are done with step one (clicking). More... | |
bool | m_PressedRight |
CGUISimpleSetting< CStrW > | m_SoundDisabled |
CGUISimpleSetting< CStrW > | m_SoundEnter |
CGUISimpleSetting< CStrW > | m_SoundLeave |
CGUISimpleSetting< CStrW > | m_SoundPressed |
CGUISimpleSetting< CStrW > | m_SoundReleased |
Static Protected Attributes | |
static const CStr | EventNamePress = "Press" |
static const CStr | EventNamePressRight = "PressRight" |
static const CStr | EventNamePressRightDisabled = "PressRightDisabled" |
static const CStr | EventNameDoublePress = "DoublePress" |
static const CStr | EventNameDoublePressRight = "DoublePressRight" |
static const CStr | EventNameRelease = "Release" |
static const CStr | EventNameReleaseRight = "ReleaseRight" |
Private Member Functions | |
NONCOPYABLE (IGUIButtonBehavior) | |
Private Attributes | |
IGUIObject & | m_pObject |
Reference to the IGUIObject. More... | |
Appends button behaviours to the IGUIObject.
Can be used with multiple inheritance alongside IGUISettingsObject and such.
IGUIButtonBehavior::IGUIButtonBehavior | ( | IGUIObject & | pObject | ) |
|
virtual |
const CGUISpriteInstance & IGUIButtonBehavior::GetButtonSprite | ( | const CGUISpriteInstance & | sprite, |
const CGUISpriteInstance & | sprite_over, | ||
const CGUISpriteInstance & | sprite_pressed, | ||
const CGUISpriteInstance & | sprite_disabled | ||
) | const |
This is a function that lets a button being drawn, it regards if it's over, disabled, pressed and such.
sprite | Sprite drawn when not pressed, hovered or disabled |
sprite_over | Sprite drawn when m_MouseHovering is true |
sprite_pressed | Sprite drawn when m_Pressed is true |
sprite_disabled | Sprite drawn when "enabled" is false |
|
virtual |
Reimplemented in CButton, CCheckBox, CRadioButton, and CSlider.
|
private |
|
protectedvirtual |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
private |
Reference to the IGUIObject.
Private, because we don't want to inherit it in multiple classes.
|
protected |
Everybody knows how a button works, you don't simply press it, you have to first press the button, and then release it... in between those two steps you can actually leave the button area, as long as you release it within the button area... Anyway this lets us know we are done with step one (clicking).
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |