1
0
forked from 0ad/0ad
0ad/source/gui/CCheckBox.h
janwas b755ddefda remove all author/modified by tags.
make include guards consistent.

This was SVN commit r5040.
2007-05-07 16:33:24 +00:00

72 lines
1.3 KiB
C++

/*
GUI Object - Check box
--Overview--
GUI Object representing a check box
--More info--
Check GUI.h
*/
#ifndef INCLUDED_CCHECKBOX
#define INCLUDED_CCHECKBOX
//--------------------------------------------------------
// Includes / Compiler directives
//--------------------------------------------------------
#include "GUI.h"
//--------------------------------------------------------
// Macros
//--------------------------------------------------------
//--------------------------------------------------------
// Types
//--------------------------------------------------------
//--------------------------------------------------------
// Declarations
//--------------------------------------------------------
/**
* 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