Changeset 3144 for code/branches/pch/src/orxonox/overlays/OverlayText.h
- Timestamp:
- Jun 10, 2009, 10:58:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/overlays/OverlayText.h
r3099 r3144 33 33 34 34 #include <string> 35 #include <OgrePrerequisites.h> 36 #include <OgreTextAreaOverlayElement.h> 35 #include "util/Math.h" 37 36 #include "OrxonoxOverlay.h" 38 37 … … 42 41 { 43 42 public: 43 enum Alignment 44 { 45 Left, 46 Right, 47 Center 48 }; 49 44 50 OverlayText(BaseObject* creator); 45 51 virtual ~OverlayText(); … … 47 53 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); 48 54 49 inline void setCaption(const std::string& caption) { this->text_->setCaption(caption); this->changedCaption(); }50 inline std::string getCaption() const { return this->text_->getCaption(); }55 void setCaption(const std::string& caption); 56 std::string getCaption() const; 51 57 52 58 void setFont(const std::string& font); 53 inline const std::string& getFont() const { return this->text_->getFontName(); }59 const std::string& getFont() const; 54 60 55 inline void setSpaceWidth(float width) { this->text_->setSpaceWidth(width); }56 inline float getSpaceWidth() const { return this->text_->getSpaceWidth(); }61 void setSpaceWidth(float width); 62 float getSpaceWidth() const; 57 63 58 inline void setColour(const ColourValue& colour) { this->text_->setColour(colour); this->changedColour(); }59 inline const ColourValue& getColour() const { return this->text_->getColour(); }64 void setColour(const ColourValue& colour); 65 const ColourValue& getColour() const; 60 66 61 inline void setAlignment(Ogre::TextAreaOverlayElement::Alignment alignment) { this->text_->setAlignment(alignment); }62 inline Ogre::TextAreaOverlayElement::Alignment getAlignment() const { return this->text_->getAlignment(); }67 void setAlignment(OverlayText::Alignment alignment); 68 OverlayText::Alignment getAlignment() const; 63 69 64 70 void setAlignmentString(const std::string& alignment);
Note: See TracChangeset
for help on using the changeset viewer.