Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9624 in orxonox.OLD for branches/proxy/src/lib/gui


Ignore:
Timestamp:
Jul 30, 2006, 10:56:02 PM (18 years ago)
Author:
bensch
Message:

orxonox/proxy: gui with a better font

Location:
branches/proxy/src/lib/gui/gl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/gui/gl/glgui_text.cc

    r9406 r9624  
    101101  {
    102102    this->_text.clear();
    103     this->changedText();
     103    this->resize();
    104104  }
     105
    105106
    106107  /**
     
    114115    this->setFrontColor(_changedTextColor, true);
    115116    this->textChanged.emit(this->_text.text());
     117  }
     118
     119  void GLGuiText::setTextSize(float size)
     120  {
     121    this->_text.setSize(size);
     122    this->changedText();
     123  }
     124
     125  void GLGuiText::setFont(const Font& font)
     126  {
     127    GLGuiWidget::setFont(font);
     128    this->_text.setFont(font);
    116129  }
    117130
  • branches/proxy/src/lib/gui/gl/glgui_text.h

    r9406 r9624  
    3131    void clear();
    3232
     33    void setTextSize(float size);
     34    virtual void setFont(const Font& font);
    3335    void setChangedTextColor(const Color& color);
    3436
  • branches/proxy/src/lib/gui/gl/glgui_widget.cc

    r9620 r9624  
    779779  void GLGuiWidget::setFont(const std::string& fontName, unsigned int renderSize)
    780780  {
    781     this->_font = Font(fontName, renderSize);
     781    this->setFont(Font(fontName, renderSize));
    782782  }
    783783
  • branches/proxy/src/lib/gui/gl/glgui_widget.h

    r9622 r9624  
    206206    void setFeaturePositionS(const std::string& featurePosition);
    207207
    208     void setFont(const Font& font);
     208    virtual void setFont(const Font& font);
    209209    void setFont(const std::string& fontName, unsigned int renderSize = FONT_DEFAULT_RENDER_SIZE);
    210210
Note: See TracChangeset for help on using the changeset viewer.