| Line | |
|---|
| 1 | /*! |
|---|
| 2 | * @file text_element.h |
|---|
| 3 | * Definition of an TextElement |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | #ifndef _TEXT_ELEMENT_H |
|---|
| 7 | #define _TEXT_ELEMENT_H |
|---|
| 8 | |
|---|
| 9 | #include "p_node.h" |
|---|
| 10 | #include "text.h" |
|---|
| 11 | #include "event_listener.h" |
|---|
| 12 | |
|---|
| 13 | #include "vector.h" |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | // FORWARD DECLARATION |
|---|
| 17 | class Model; |
|---|
| 18 | class Material; |
|---|
| 19 | class TiXmlElement; |
|---|
| 20 | |
|---|
| 21 | //! A class that enables the |
|---|
| 22 | class TextElement : public Text { |
|---|
| 23 | ObjectListDeclaration(TextElement); |
|---|
| 24 | |
|---|
| 25 | public: |
|---|
| 26 | TextElement(const TiXmlElement* root = NULL); |
|---|
| 27 | virtual ~TextElement(); |
|---|
| 28 | |
|---|
| 29 | void init(); |
|---|
| 30 | virtual void loadParams(const TiXmlElement* root); |
|---|
| 31 | |
|---|
| 32 | void setText(const std::string& text); |
|---|
| 33 | void setFont(const std::string& font); |
|---|
| 34 | |
|---|
| 35 | private: |
|---|
| 36 | |
|---|
| 37 | }; |
|---|
| 38 | |
|---|
| 39 | #endif /* _TEXT_ELEMENT_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.