Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CButton.h
Show All 15 Lines | |||||
*/ | */ | ||||
#ifndef INCLUDED_CBUTTON | #ifndef INCLUDED_CBUTTON | ||||
#define INCLUDED_CBUTTON | #define INCLUDED_CBUTTON | ||||
#include "gui/IGUIButtonBehavior.h" | #include "gui/IGUIButtonBehavior.h" | ||||
#include "gui/IGUIObject.h" | #include "gui/IGUIObject.h" | ||||
#include "gui/IGUITextOwner.h" | #include "gui/IGUITextOwner.h" | ||||
#include "gui/CGUISprite.h" | |||||
#include "gui/CGUIString.h" | |||||
class CButton : public IGUIButtonBehavior, public IGUITextOwner | class CButton : public IGUIButtonBehavior, public IGUITextOwner | ||||
{ | { | ||||
GUI_OBJECT(CButton) | GUI_OBJECT(CButton) | ||||
public: | public: | ||||
CButton(CGUI& pGUI); | CButton(CGUI& pGUI); | ||||
virtual ~CButton(); | virtual ~CButton(); | ||||
Show All 24 Lines | protected: | ||||
* Picks the text color depending on current object settings. | * Picks the text color depending on current object settings. | ||||
*/ | */ | ||||
const CGUIColor& ChooseColor(); | const CGUIColor& ChooseColor(); | ||||
/** | /** | ||||
* Placement of text. | * Placement of text. | ||||
*/ | */ | ||||
CPos m_TextPos; | CPos m_TextPos; | ||||
// Settings | |||||
float m_BufferZone; | |||||
i32 m_CellID; | |||||
CGUIString m_Caption; | |||||
CStrW m_Font; | |||||
CGUISpriteInstance m_Sprite; | |||||
CGUISpriteInstance m_SpriteOver; | |||||
CGUISpriteInstance m_SpritePressed; | |||||
CGUISpriteInstance m_SpriteDisabled; | |||||
EAlign m_TextAlign; | |||||
EVAlign m_TextVAlign; | |||||
CGUIColor m_TextColor; | |||||
CGUIColor m_TextColorOver; | |||||
CGUIColor m_TextColorPressed; | |||||
CGUIColor m_TextColorDisabled; | |||||
}; | }; | ||||
#endif // INCLUDED_CBUTTON | #endif // INCLUDED_CBUTTON |
Wildfire Games · Phabricator