Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CCheckBox.h
Go to the documentation of this file.
1/* Copyright (C) 2021 Wildfire Games.
2 * This file is part of 0 A.D.
3 *
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.
8 *
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.
13 *
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/>.
16 */
17
18#ifndef INCLUDED_CCHECKBOX
19#define INCLUDED_CCHECKBOX
20
21#include "gui/CGUISprite.h"
24
26{
28
29public:
30 CCheckBox(CGUI& pGUI);
31 virtual ~CCheckBox();
32
33 /**
34 * @see IGUIObject#ResetStates()
35 */
36 virtual void ResetStates();
37
38 /**
39 * @see IGUIObject#HandleMessage()
40 */
41 virtual void HandleMessage(SGUIMessage& Message);
42
43 /**
44 * Draws the control
45 */
46 virtual void Draw(CCanvas2D& canvas);
47
48protected:
49 // Settings
59};
60
61#endif // INCLUDED_CCHECKBOX
#define GUI_OBJECT(obj)
Definition: IGUIObject.h:50
Definition: Canvas2D.h:36
Definition: CCheckBox.h:26
CGUISimpleSetting< CGUISpriteInstance > m_SpriteUncheckedOver
Definition: CCheckBox.h:52
virtual void Draw(CCanvas2D &canvas)
Draws the control.
Definition: CCheckBox.cpp:67
CGUISimpleSetting< CGUISpriteInstance > m_SpriteCheckedPressed
Definition: CCheckBox.h:57
CGUISimpleSetting< CGUISpriteInstance > m_SpriteCheckedOver
Definition: CCheckBox.h:56
virtual void HandleMessage(SGUIMessage &Message)
Definition: CCheckBox.cpp:49
CGUISimpleSetting< CGUISpriteInstance > m_SpriteUncheckedPressed
Definition: CCheckBox.h:53
CGUISimpleSetting< CGUISpriteInstance > m_SpriteChecked
Definition: CCheckBox.h:55
CGUISimpleSetting< CGUISpriteInstance > m_SpriteCheckedDisabled
Definition: CCheckBox.h:58
virtual void ResetStates()
Definition: CCheckBox.cpp:43
virtual ~CCheckBox()
Definition: CCheckBox.cpp:39
CGUISimpleSetting< bool > m_Checked
Definition: CCheckBox.h:50
CGUISimpleSetting< CGUISpriteInstance > m_SpriteUncheckedDisabled
Definition: CCheckBox.h:54
CGUISimpleSetting< CGUISpriteInstance > m_SpriteUnchecked
Definition: CCheckBox.h:51
CCheckBox(CGUI &pGUI)
Definition: CCheckBox.cpp:24
The main object that represents a whole GUI page.
Definition: CGUI.h:61
Appends button behaviours to the IGUIObject.
Definition: IGUIButtonBehavior.h:40
GUI object such as a button or an input-box.
Definition: IGUIObject.h:60
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
Definition: SGUIMessage.h:68