Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CProgressBar.h
Go to the documentation of this file.
1 /* Copyright (C) 2009 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 /*
19 GUI Object - Progress bar
20 
21 --Overview--
22 
23  GUI Object to show progress or a value visually.
24 
25 --More info--
26 
27  Check GUI.h
28 
29 */
30 
31 #ifndef INCLUDED_CPROGRESSBAR
32 #define INCLUDED_CPROGRESSBAR
33 
34 //--------------------------------------------------------
35 // Includes / Compiler directives
36 //--------------------------------------------------------
37 #include "GUI.h"
38 
39 //--------------------------------------------------------
40 // Macros
41 //--------------------------------------------------------
42 
43 //--------------------------------------------------------
44 // Types
45 //--------------------------------------------------------
46 
47 //--------------------------------------------------------
48 // Declarations
49 //--------------------------------------------------------
50 
51 /**
52  * Object used to draw a value from 0 to 100 visually.
53  *
54  * @see IGUIObject
55  */
56 class CProgressBar : public IGUIObject
57 {
59 
60 public:
61  CProgressBar();
62  virtual ~CProgressBar();
63 
64 protected:
65  /**
66  * Draws the progress bar
67  */
68  virtual void Draw();
69 
70  // If caption is set, make sure it's within the interval 0-100
71  /**
72  * @see IGUIObject#HandleMessage()
73  */
74  void HandleMessage(SGUIMessage &Message);
75 };
76 
77 #endif
void HandleMessage(SGUIMessage &Message)
Base settings, all objects possess these settings in their m_BaseSettings Instructions can be found i...
Definition: IGUIObject.h:140
virtual ~CProgressBar()
virtual void Draw()
Draws the progress bar.
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
Definition: GUIbase.h:106
Object used to draw a value from 0 to 100 visually.
Definition: CProgressBar.h:56
#define GUI_OBJECT(obj)
Definition: GUIbase.h:62