Last change
on this file since 10764 was
8991,
checked in by bensch, 18 years ago
|
orxonox/trunk: added a Radar class, to display radar as Widget
|
File size:
1.2 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file glgui_text.h |
---|
3 | * The gl_TEXT widget of th openglGUI |
---|
4 | * |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _GLGUI_TEXT_H |
---|
8 | #define _GLGUI_TEXT_H |
---|
9 | |
---|
10 | #include "glgui_widget.h" |
---|
11 | #include "limited_width_text.h" |
---|
12 | // FORWARD DECLARATION |
---|
13 | namespace OrxGui |
---|
14 | { |
---|
15 | |
---|
16 | //! This is part of the openglGUI class |
---|
17 | /** |
---|
18 | * |
---|
19 | */ |
---|
20 | class GLGuiText : public GLGuiWidget |
---|
21 | { |
---|
22 | |
---|
23 | public: |
---|
24 | GLGuiText(); |
---|
25 | virtual ~GLGuiText(); |
---|
26 | |
---|
27 | void setText(const std::string& text); |
---|
28 | void append(const std::string& appendText); |
---|
29 | void appendCharacter(char character); |
---|
30 | void removeCharacters(unsigned int chars); |
---|
31 | void clear(); |
---|
32 | |
---|
33 | void setChangedTextColor(const Color& color); |
---|
34 | |
---|
35 | void setDotsPosition(LimitedWidthText::DotsPosition dotsPosition) { this->_text.setDotsPosition(dotsPosition); }; |
---|
36 | |
---|
37 | const std::string& text() const { return _text.text(); }; |
---|
38 | |
---|
39 | |
---|
40 | virtual void draw() const; |
---|
41 | |
---|
42 | DeclareSignal1(textChanged, const std::string&); |
---|
43 | |
---|
44 | protected: |
---|
45 | virtual void updateFrontColor(); |
---|
46 | virtual void hiding(); |
---|
47 | virtual void showing(); |
---|
48 | virtual void resize(); |
---|
49 | |
---|
50 | private: |
---|
51 | void init(); |
---|
52 | void changedText(); |
---|
53 | |
---|
54 | |
---|
55 | private: |
---|
56 | LimitedWidthText _text; |
---|
57 | |
---|
58 | Color _changedTextColor; |
---|
59 | }; |
---|
60 | } |
---|
61 | |
---|
62 | #endif /* _GLGUI_TEXT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.