Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8769 in orxonox.OLD for trunk/src/lib/gui/gl/glgui_widget.h


Ignore:
Timestamp:
Jun 24, 2006, 4:21:52 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Font in Button-Widget used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl/glgui_widget.h

    r8717 r8769  
    1212
    1313#include "material.h"
     14#include "font.h"
     15
    1416#include "rect2D.h"
    1517
    1618#include "event.h"
    1719#include "signal_connector.h"
    18 
    19 class Font;
    2020
    2121namespace OrxGui
     
    120120    inline FeaturePosition featurePosition() const { return _featurePosition; }
    121121    /** @returns the font */
    122     inline const Font* const font() const { return _font; }
     122    inline const Font& font() const { return _font; }
    123123    /** @returns true if the Element is Animated */
    124124    inline bool animating() const { return _animating; }
     
    204204    void setFeaturePositionS(const std::string& featurePosition);
    205205
    206     void setFont(Font* font);
    207     void setFont(const std::string& fontName);
     206    void setFont(const Font& font);
     207    void setFont(const std::string& fontName, unsigned int renderSize);
    208208
    209209    void setAnimatedStateChanges(bool animated);
     
    319319
    320320    FeaturePosition                _featurePosition;      //!< The Position a Feature will be layed at (checkbox(box), slider(text),...)
    321     Font*                          _font;                 //!< The Font used in the current Widget.
     321    Font                           _font;                 //!< The Font used in the current Widget.
    322322
    323323
Note: See TracChangeset for help on using the changeset viewer.