Added different textures for each ptolemaic camel rank
[0ad.git] / source / gui / CCheckBox.h
blob65ff7d227ca040e13d62bdd736d949c43cd9e5bc
1 /* Copyright (C) 2009 Wildfire Games.
2 * This file is part of 0 A.D.
4 * 0 A.D. is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * 0 A.D. is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
19 GUI Object - Check box
21 --Overview--
23 GUI Object representing a check box
25 --More info--
27 Check GUI.h
31 #ifndef INCLUDED_CCHECKBOX
32 #define INCLUDED_CCHECKBOX
34 //--------------------------------------------------------
35 // Includes / Compiler directives
36 //--------------------------------------------------------
37 #include "GUI.h"
39 //--------------------------------------------------------
40 // Macros
41 //--------------------------------------------------------
43 //--------------------------------------------------------
44 // Types
45 //--------------------------------------------------------
47 //--------------------------------------------------------
48 // Declarations
49 //--------------------------------------------------------
51 /**
52 * CheckBox
54 * @see IGUIObject
55 * @see IGUISettingsObject
56 * @see IGUIButtonBehavior
58 class CCheckBox : public IGUIButtonBehavior, public IGUITextOwner
60 GUI_OBJECT(CCheckBox)
62 public:
63 CCheckBox();
64 virtual ~CCheckBox();
66 /**
67 * @see IGUIObject#ResetStates()
69 virtual void ResetStates() { IGUIButtonBehavior::ResetStates(); }
71 /**
72 * @see IGUIObject#HandleMessage()
74 virtual void HandleMessage(SGUIMessage &Message);
76 /**
77 * Draws the control
79 virtual void Draw();
81 protected:
82 /**
83 * Sets up text, should be called every time changes has been
84 * made that can change the visual.
86 void SetupText();
89 #endif