Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7892 in orxonox.OLD for branches/gui/src/lib/graphics


Ignore:
Timestamp:
May 27, 2006, 3:47:27 AM (19 years ago)
Author:
bensch
Message:

gui: introduce inputline

Location:
branches/gui/src/lib/graphics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/render2D/element_2d.h

    r7874 r7892  
    126126
    127127    inline void setSize2D(float x, float y) { this->size = Vector2D(x, y); };
     128    inline void setSize2D(const Vector2D& size) { this->size = size; };
     129    inline const Vector2D& getSize2D() const { return this->size; };
    128130    void setSizeSoft2D(float x, float y, float bias = 1.0);
    129131    inline void setSizeX2D(float x) { this->size.x = x; };
  • branches/gui/src/lib/graphics/text_engine/text.cc

    r7889 r7892  
    136136  return this->text;
    137137}
     138
     139/**
     140 * @brief removes char characters from the Text.
     141 */
     142void Text::removeCharacters(unsigned int chars)
     143{
     144  this->text.resize(this->text.size()-chars);
     145}
     146
    138147
    139148/**
  • branches/gui/src/lib/graphics/text_engine/text.h

    r7753 r7892  
    3838    void append(const std::string& appendText);
    3939    const std::string& operator<<(const std::string& appendText);
     40    void removeCharacters(unsigned int chars);
    4041
    4142    /// SETUP
Note: See TracChangeset for help on using the changeset viewer.