Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7753 in orxonox.OLD for trunk/src/lib/graphics/text_engine/text.h


Ignore:
Timestamp:
May 21, 2006, 5:24:14 PM (18 years ago)
Author:
bensch
Message:

trunk: removed GTK, and also extended the Text Class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/text.h

    r7453 r7753  
    2828  public:
    2929    Text(const std::string& fontFile = "", unsigned int fontSize = TEXT_DEFAULT_SIZE);
     30    Text(const Text& text);
    3031    virtual ~Text();
     32    bool operator==(const Text& text) const;
     33    bool operator==(const std::string& text) const;
     34    Text& operator=(const Text& text);
    3135
    32     // SETUP
     36    /// Final Interfacing.
     37    void setText(const std::string& text);
     38    void append(const std::string& appendText);
     39    const std::string& operator<<(const std::string& appendText);
     40
     41    /// SETUP
    3342    void setFont(const std::string& fontFile, unsigned int renderSize);
    34     void setText(const std::string& text);
    3543    /** @param blending the blending intensity to set (between 0.0 and 1.0) */
    3644    inline void setBlending(float blending) { this->blending = blending; };
     
    3947    void setSize(float size);
    4048
     49
    4150    /// RETRIEVE
     51    /** @returns the String this Text displays */
     52    inline const std::string& getText() const { return this->text; };
     53
    4254    /** @returns the pointer to the stored Font (not changeable) */
    4355    inline const Font* const getFont() const { return this->font; };
    44     /** @returns the String this Text displays */
    45     inline const std::string& getText() const { return this->text; };
    4656    /** @returns the Blending Value [0 invisible 1.0 full visible */
    4757    inline float getBlending() const { return this->blending; };
     
    5767  protected:
    5868    virtual void setupTextWidth();
     69  private:
     70    void init();
    5971
    6072  private:
Note: See TracChangeset for help on using the changeset viewer.