![]() |
Middle Europe Productions Library
alpha 1.3.3
|
MEP::Drawable provides a basic implementation of an object with the ability of display it on a screen. More...
#include <Drawable.h>
Public Member Functions | |
| void | _link (std::shared_ptr< bool > _li) |
| std::shared_ptr< bool > | _linkAddr () |
| const std::shared_ptr< bool > | _linkAddr () const |
| bool | _isLinked () const |
| U_int32 | getDrawTag () const |
| void | setDrawTag (const U_int32 tag) |
| bool | addDrawTag (const U_int32 tag) |
| bool | removeDrawTag (const U_int32 tag) |
| virtual void | onResize () |
| Drawable ()=default | |
| virtual bool | draw (sf::RenderWindow &) |
| virtual void | update (sf::Time &) |
| virtual void | entryUpdate (sf::Time ¤tTime, bool low=false) |
| virtual void | exitUpdate (sf::Time ¤tTime, bool low=false) |
| virtual bool | isActive () const |
| virtual void | debugOutput (std::ostream &out) const |
| virtual | ~Drawable () |
Protected Member Functions | |
| void | notify () |
| void | drawTagDebug (std::ostream &out) const |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Drawable &x) |
MEP::Drawable provides a basic implementation of an object with the ability of display it on a screen.
|
default |
Default contructor.
|
inlinevirtual |
|
inline |
Outputs the information about the activity of the link. Boolean value output true when resource is active.
|
inline |
Links the notification link. Boolean value output true when resource is active.
|
inline |
Outputs the notification link. Boolean value output true when resource is active.
|
inline |
Outputs the notification link. Boolean value output true when resource is active.
|
inline |
Adds the draw tag of a MEP::Drawable. Use MEP::DrawTag here.
| [in] | MEP::Drawable::DrawTag. |
|
inlinevirtual |
Debug output of the class.
Reimplemented in MEP::TextureObject, MEP::Text, MEP::Object, MEP::AnimationPosition, MEP::AnimationObject, and MEP::AnimationColor.
|
inlinevirtual |
Default virtual draw function.
| [in] | window | : Reference to a window. |
Reimplemented in MEP::TextureObject, MEP::Text, MEP::Object, MEP::AnimationObject, and MEP::AnimationPosition.
|
inlineprotected |
DrawTag output
|
inlinevirtual |
Default virtual entry update function.
| [in] | currentTime | : Current global time. |
Reimplemented in MEP::Object, MEP::AnimationPosition, and MEP::AnimationObject.
|
inlinevirtual |
Default virtual exit update function.
| [in] | currentTime | : Current global time. |
Reimplemented in MEP::Object, MEP::AnimationPosition, and MEP::AnimationObject.
|
inline |
Outputs draw tag of a MEP::Drawable Use MEP::DrawTag here.
|
inlinevirtual |
Default virtual activation status method.
| [in] | currentTime | : Current global time. |
Reimplemented in MEP::TextureObject, MEP::AnimationPosition, MEP::AnimationObject, and MEP::Object.
|
inlineprotected |
Notify the link.
|
inlinevirtual |
Instructions on what to do when window is being resized.
Reimplemented in MEP::TextureObject, MEP::Text, and MEP::AnimationObject.
|
inline |
Removes the draw tag of a MEP::Drawable. Use MEP::DrawTag here.
| [in] | MEP::Drawable::DrawTag. |
|
inline |
Sets the draw tag of a MEP::Drawable. Use MEP::DrawTag here.
| [in] | MEP::Drawable::DrawTag. |
|
inlinevirtual |
Default virtual update function.
| [in] | currentTime | : Current global time. |
Reimplemented in MEP::Button, MEP::AnimationObject, MEP::AnimationColor, MEP::AnimationPosition, MEP::TextureObject, MEP::Text, and MEP::Object.
|
friend |
Overrdie of the << operator for diagnostic purposes.