Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2009, 10:58:53 PM (15 years ago)
Author:
rgrieder
Message:

Header file section clean up in orxonox/overlays (without stats). Also reduced dependencies as much as possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/overlays/OverlayText.h

    r3099 r3144  
    3333
    3434#include <string>
    35 #include <OgrePrerequisites.h>
    36 #include <OgreTextAreaOverlayElement.h>
     35#include "util/Math.h"
    3736#include "OrxonoxOverlay.h"
    3837
     
    4241    {
    4342    public:
     43        enum Alignment
     44        {
     45            Left,
     46            Right,
     47            Center
     48        };
     49
    4450        OverlayText(BaseObject* creator);
    4551        virtual ~OverlayText();
     
    4753        virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
    4854
    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;
    5157
    5258        void setFont(const std::string& font);
    53         inline const std::string& getFont() const { return this->text_->getFontName(); }
     59        const std::string& getFont() const;
    5460
    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;
    5763
    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;
    6066
    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;
    6369
    6470        void setAlignmentString(const std::string& alignment);
Note: See TracChangeset for help on using the changeset viewer.