Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/gui/src/lib/gui/gl/glgui_multiline_text.h @ 10164

Last change on this file since 10164 was 10164, checked in by hejja, 17 years ago

border made

File size: 1.4 KB
RevLine 
[4838]1/*!
[10164]2 * @file glgui_multiline_text.h
[5365]3 * The gl_TEXT widget of th openglGUI
[5360]4 *
5 */
[1853]6
[10164]7#ifndef _GLGUI_MULTILINE_TEXT_H
8#define _GLGUI_MULTILINE_TEXT_H
[1853]9
[5365]10#include "glgui_widget.h"
[10164]11#include "multi_line_text.h"
[4838]12// FORWARD DECLARATION
[7779]13namespace OrxGui
14{
[3543]15
[7779]16  //! This is part of the openglGUI class
17  /**
18   *
19   */
[10164]20  class GLGuiMultiLineText : public GLGuiWidget
[7779]21  {
[10164]22    ObjectListDeclaration(GLGuiMultiLineText);
[7779]23  public:
[10164]24    GLGuiMultiLineText();
25    virtual ~GLGuiMultiLineText();
[2036]26
[8973]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();
[1853]32
[9656]33    void setTextSize(float size);
34    virtual void setFont(const Font& font);
[8991]35    void setChangedTextColor(const Color& color);
36
[9406]37    void setLineWidth(float lineWidth) { this->_text.setLineWidth(lineWidth); };
[10164]38//    void setDotsPosition(LimitedWidthText::DotsPosition dotsPosition) { this->_text.setDotsPosition(dotsPosition); };
[8980]39
[8973]40    const std::string& text() const { return _text.text(); };
[1853]41
[8973]42
43    virtual void draw() const;
44
[9406]45    sigslot::signal1<const std::string&> textChanged;
[8973]46
47  protected:
48    virtual void updateFrontColor();
49    virtual void hiding();
50    virtual void showing();
51    virtual void resize();
52
[7779]53  private:
[8035]54    void init();
[8973]55    void changedText();
[8035]56
57
58  private:
[10164]59    MultiLineText       _text;
[8991]60
61    Color               _changedTextColor;
[7779]62  };
63}
[1853]64
[10164]65#endif /* _GLGUI_MULTILINE_TEXT_H */
Note: See TracBrowser for help on using the repository browser.