Last change
on this file since 7893 was
7779,
checked in by bensch, 19 years ago
|
3088 linews changed : trunk: namespaces
|
File size:
889 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file glgui_bar.h |
---|
3 | * The gl_ widget of th openglGUI |
---|
4 | * |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _GLGUI_BAR_H |
---|
8 | #define _GLGUI_BAR_H |
---|
9 | |
---|
10 | #include "glgui_widget.h" |
---|
11 | |
---|
12 | |
---|
13 | namespace OrxGui |
---|
14 | { |
---|
15 | |
---|
16 | |
---|
17 | //! This is Bar part of the openglGUI class |
---|
18 | /** |
---|
19 | * The Bar shows the part value. |
---|
20 | */ |
---|
21 | class GLGuiBar : public GLGuiWidget |
---|
22 | { |
---|
23 | |
---|
24 | public: |
---|
25 | GLGuiBar(); |
---|
26 | virtual ~GLGuiBar(); |
---|
27 | |
---|
28 | void setValue(float value) { this->value = value; }; |
---|
29 | void setMinimum(float minimum) { this->minimum = minimum; }; |
---|
30 | void setMaximum(float maximum) { this->maximum = maximum; }; |
---|
31 | |
---|
32 | float getValue() const { return this->value; }; |
---|
33 | float getMinimum() const { return this->minimum; }; |
---|
34 | float getMaximum() const { return this->maximum; }; |
---|
35 | |
---|
36 | virtual void update() { }; |
---|
37 | virtual void draw() const; |
---|
38 | |
---|
39 | private: |
---|
40 | void init(); |
---|
41 | |
---|
42 | private: |
---|
43 | float value; |
---|
44 | |
---|
45 | float minimum; |
---|
46 | float maximum; |
---|
47 | }; |
---|
48 | } |
---|
49 | #endif /* _GLGUI__H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.