Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/gui/src/lib/gui/gl_gui/glgui_inputline.h @ 7893

Last change on this file since 7893 was 7893, checked in by bensch, 18 years ago

gui: InputLine appends

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