1
0
forked from 0ad/0ad
0ad/source/gui/CText.h
Gee e326ebae46 major update
This was SVN commit r290.
2004-05-29 04:06:50 +00:00

78 lines
1.4 KiB
C++
Executable File

/*
GUI Object - Text [field]
by Gustav Larsson
gee@pyro.nu
--Overview--
GUI Object representing a text field
--More info--
Check GUI.h
*/
#ifndef CText_H
#define CText_H
//--------------------------------------------------------
// Includes / Compiler directives
//--------------------------------------------------------
#include "GUI.h"
// TODO Gee: Remove
class IGUIScrollBar;
//--------------------------------------------------------
// Macros
//--------------------------------------------------------
//--------------------------------------------------------
// Types
//--------------------------------------------------------
//--------------------------------------------------------
// Declarations
//--------------------------------------------------------
/**
* @author Gustav Larsson
*
* Text field that just displays static text.
*
* @see IGUIObject
* @see IGUISettingsObject
*/
class CText : public IGUIScrollBarOwner, public IGUITextOwner
{
GUI_OBJECT(CText)
public:
CText();
virtual ~CText();
virtual void ResetStates() { IGUIScrollBarOwner::ResetStates(); }
protected:
/**
* Sets up text, should be called every time changes has been
* made that can change the visual.
*/
void SetupText();
/**
* Handle Messages
*
* @param Message GUI Message
*/
virtual void HandleMessage(const SGUIMessage &Message);
/**
* Draws the Text
*/
virtual void Draw();
};
#endif