Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CCheckBox.h
Go to the documentation of this file.
1/* Copyright (C) 2025 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/CGUISetting.h"
22#include "gui/CGUISprite.h"
25
26class CGUI;
27
29{
31
32public:
33 CCheckBox(CGUI& pGUI);
34
35 /**
36 * @see IGUIObject#ResetStates()
37 */
38 virtual void ResetStates();
39
40 /**
41 * @see IGUIObject#HandleMessage()
42 */
43 virtual void HandleMessage(SGUIMessage& Message);
44
45 /**
46 * Draws the control
47 */
48 virtual void Draw(CCanvas2D& canvas);
49
50protected:
51 // Settings
61};
62
63#endif // INCLUDED_CCHECKBOX
#define GUI_OBJECT(obj)
Definition: IGUIObject.h:53
Definition: Canvas2D.h:36
Definition: CCheckBox.h:29
CGUISimpleSetting< CGUISpriteInstance > m_SpriteUncheckedOver
Definition: CCheckBox.h:54
virtual void Draw(CCanvas2D &canvas)
Draws the control.
Definition: CCheckBox.cpp:65
CGUISimpleSetting< CGUISpriteInstance > m_SpriteCheckedPressed
Definition: CCheckBox.h:59
CGUISimpleSetting< CGUISpriteInstance > m_SpriteCheckedOver
Definition: CCheckBox.h:58
virtual void HandleMessage(SGUIMessage &Message)
Definition: CCheckBox.cpp:47
CGUISimpleSetting< CGUISpriteInstance > m_SpriteUncheckedPressed
Definition: CCheckBox.h:55
CGUISimpleSetting< CGUISpriteInstance > m_SpriteChecked
Definition: CCheckBox.h:57
CGUISimpleSetting< CGUISpriteInstance > m_SpriteCheckedDisabled
Definition: CCheckBox.h:60
virtual void ResetStates()
Definition: CCheckBox.cpp:41
CGUISimpleSetting< bool > m_Checked
Definition: CCheckBox.h:52
CGUISimpleSetting< CGUISpriteInstance > m_SpriteUncheckedDisabled
Definition: CCheckBox.h:56
CGUISimpleSetting< CGUISpriteInstance > m_SpriteUnchecked
Definition: CCheckBox.h:53
CCheckBox(CGUI &pGUI)
Definition: CCheckBox.cpp:26
The main object that represents a whole GUI page.
Definition: CGUI.h:80
Appends button behaviours to the IGUIObject.
Definition: IGUIButtonBehavior.h:43
GUI object such as a button or an input-box.
Definition: IGUIObject.h:63
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
Definition: SGUIMessage.h:73