Changeset 7753 in orxonox.OLD for trunk/src/lib/graphics/text_engine/text.h
- Timestamp:
- May 21, 2006, 5:24:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/text.h
r7453 r7753 28 28 public: 29 29 Text(const std::string& fontFile = "", unsigned int fontSize = TEXT_DEFAULT_SIZE); 30 Text(const Text& text); 30 31 virtual ~Text(); 32 bool operator==(const Text& text) const; 33 bool operator==(const std::string& text) const; 34 Text& operator=(const Text& text); 31 35 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 33 42 void setFont(const std::string& fontFile, unsigned int renderSize); 34 void setText(const std::string& text);35 43 /** @param blending the blending intensity to set (between 0.0 and 1.0) */ 36 44 inline void setBlending(float blending) { this->blending = blending; }; … … 39 47 void setSize(float size); 40 48 49 41 50 /// RETRIEVE 51 /** @returns the String this Text displays */ 52 inline const std::string& getText() const { return this->text; }; 53 42 54 /** @returns the pointer to the stored Font (not changeable) */ 43 55 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; };46 56 /** @returns the Blending Value [0 invisible 1.0 full visible */ 47 57 inline float getBlending() const { return this->blending; }; … … 57 67 protected: 58 68 virtual void setupTextWidth(); 69 private: 70 void init(); 59 71 60 72 private:
Note: See TracChangeset
for help on using the changeset viewer.