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

76 lines
1.4 KiB
C++
Executable File

/*
GUI Object - Check box
by Gustav Larsson
gee@pyro.nu
--Overview--
GUI Object representing a check box
--More info--
Check GUI.h
*/
#ifndef CCheckBox_H
#define CCheckBox_H
//--------------------------------------------------------
// Includes / Compiler directives
//--------------------------------------------------------
#include "GUI.h"
//--------------------------------------------------------
// Macros
//--------------------------------------------------------
//--------------------------------------------------------
// Types
//--------------------------------------------------------
//--------------------------------------------------------
// Declarations
//--------------------------------------------------------
/**
* @author Gustav Larsson
*
* CheckBox
*
* @see IGUIObject
* @see IGUISettingsObject
* @see IGUIButtonBehavior
*/
class CCheckBox : public IGUIButtonBehavior, public IGUITextOwner
{
GUI_OBJECT(CCheckBox)
public:
CCheckBox();
virtual ~CCheckBox();
virtual void ResetStates() { IGUIButtonBehavior::ResetStates(); }
/**
* Handle Messages
*
* @param Message GUI Message
*/
virtual void HandleMessage(const SGUIMessage &Message);
/**
* Draws the control
*/
virtual void Draw();
protected:
/**
* Sets up text, should be called every time changes has been
* made that can change the visual.
*/
void SetupText();
};
#endif