Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CText.h
Show All 12 Lines | |||||
* | * | ||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef INCLUDED_CTEXT | #ifndef INCLUDED_CTEXT | ||||
#define INCLUDED_CTEXT | #define INCLUDED_CTEXT | ||||
#include "gui/CGUISprite.h" | |||||
#include "gui/CGUIString.h" | |||||
#include "gui/IGUIScrollBarOwner.h" | #include "gui/IGUIScrollBarOwner.h" | ||||
#include "gui/IGUITextOwner.h" | #include "gui/IGUITextOwner.h" | ||||
/** | /** | ||||
* Text field that just displays static text. | * Text field that just displays static text. | ||||
*/ | */ | ||||
class CText : public IGUIScrollBarOwner, public IGUITextOwner | class CText : public IGUIScrollBarOwner, public IGUITextOwner | ||||
{ | { | ||||
Show All 29 Lines | protected: | ||||
* Draws the Text | * Draws the Text | ||||
*/ | */ | ||||
virtual void Draw(); | virtual void Draw(); | ||||
/** | /** | ||||
* Placement of text. Ignored when scrollbars are active. | * Placement of text. Ignored when scrollbars are active. | ||||
*/ | */ | ||||
CPos m_TextPos; | CPos m_TextPos; | ||||
// Settings | |||||
float m_BufferZone; | |||||
CGUIString m_Caption; | |||||
i32 m_CellID; | |||||
bool m_Clip; | |||||
CStrW m_Font; | |||||
bool m_ScrollBar; | |||||
CStr m_ScrollBarStyle; | |||||
bool m_ScrollBottom; | |||||
bool m_ScrollTop; | |||||
CGUISpriteInstance m_Sprite; | |||||
EAlign m_TextAlign; | |||||
EVAlign m_TextVAlign; | |||||
CGUIColor m_TextColor; | |||||
CGUIColor m_TextColorDisabled; | |||||
CStrW m_IconTooltip; | |||||
CStr m_IconTooltipStyle; | |||||
}; | }; | ||||
#endif // INCLUDED_CTEXT | #endif // INCLUDED_CTEXT |
Wildfire Games · Phabricator