Changeset 8754 in orxonox.OLD for branches/fontdata/src/lib/graphics/text_engine/text.h
- Timestamp:
- Jun 23, 2006, 6:58:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fontdata/src/lib/graphics/text_engine/text.h
r8619 r8754 9 9 #include "element_2d.h" 10 10 #include "color.h" 11 #include "font.h" 11 12 12 13 #define TEXT_ALIGN_LEFT E2D_ALIGN_LEFT … … 20 21 21 22 // FORWARD DECLARATION 22 class Font;23 23 struct SDL_Surface; 24 24 … … 58 58 59 59 /** @returns the pointer to the stored Font (not changeable) */ 60 inline const Font * constfont() const { return this->_font; };60 inline const Font& font() const { return this->_font; }; 61 61 /** @returns the Blending Value [0 invisible 1.0 full visible */ 62 62 inline float blending() const { return this->_color.a(); }; … … 76 76 77 77 private: 78 Font *_font; //!< Font of this text78 Font _font; //!< Font of this text 79 79 80 80 std::string _text; //!< The text to display
Note: See TracChangeset
for help on using the changeset viewer.