Line | |
---|
1 | /*! |
---|
2 | * @file glgui_inputline.h |
---|
3 | * The gl_INPUTLINE widget of th openglGUI |
---|
4 | * |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _GLGUI_INPUTLINE_H |
---|
8 | #define _GLGUI_INPUTLINE_H |
---|
9 | |
---|
10 | #include "glgui_widget.h" |
---|
11 | #include "text.h" |
---|
12 | #include "event.h" |
---|
13 | |
---|
14 | // FORWARD DECLARATION |
---|
15 | namespace OrxGui |
---|
16 | { |
---|
17 | |
---|
18 | //! This is part of the openglGUI class |
---|
19 | /** |
---|
20 | * |
---|
21 | */ |
---|
22 | class GLGuiInputLine : public OrxGui::GLGuiWidget |
---|
23 | { |
---|
24 | |
---|
25 | public: |
---|
26 | GLGuiInputLine(); |
---|
27 | virtual ~GLGuiInputLine(); |
---|
28 | |
---|
29 | void init(); |
---|
30 | |
---|
31 | void setText(const std::string& text); |
---|
32 | void append(const std::string& appendText); |
---|
33 | void appendCharacter(char character); |
---|
34 | void removeCharacters(unsigned int chars); |
---|
35 | const std::string& getName() const { return this->text.getText(); }; |
---|
36 | |
---|
37 | virtual void draw() const; |
---|
38 | |
---|
39 | virtual bool processEvent(const Event& event); |
---|
40 | |
---|
41 | private: |
---|
42 | Text text; |
---|
43 | }; |
---|
44 | } |
---|
45 | |
---|
46 | #endif /* _GLGUI_INPUTLINE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.