|
| | Text (const std::string &content, sf::Font &font, unsigned int fontSize=40, sf::Vector2f position={ 0, 0 }, PositionTag tag=PositionTag::Non) |
| |
| | Text (const std::string &content, sf::Font &font, const Following &follow, unsigned int fontSize=40, PositionTag tag=PositionTag::Non) |
| |
| Text & | operator<< (const Sprite &x) |
| |
| Text & | operator<< (const Text &x) |
| |
| void | onResize () override |
| |
| void | update (sf::Time &) override |
| |
| void | changePositionTag (const PositionTag &x) |
| |
| bool | draw (sf::RenderWindow &window) override |
| |
| const std::string & | getString () const |
| |
| sf::Text & | getText () |
| |
| void | setText (const std::string &in) |
| |
| void | setColor (const sf::Color &in) |
| |
| virtual void | debugOutput (std::ostream &out) const |
| |
| 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) |
| |
| | Drawable ()=default |
| |
| virtual void | entryUpdate (sf::Time ¤tTime, bool low=false) |
| |
| virtual void | exitUpdate (sf::Time ¤tTime, bool low=false) |
| |
| virtual bool | isActive () const |
| |
| virtual | ~Drawable () |
| |
| | Following (const FollowType &followType, sf::Vector2f pos={ 0.f, 0.f }, sf::Vector2f posFixed={ 0.f, 0.f }, sf::Vector2f scale={ 1.f, 1.f }, sf::Vector2f scaleFixed={ 1.f, 1.f }) |
| |
| | Following (sf::Vector2f pos={ 0.f, 0.f }, sf::Vector2f posFixed={ 0.f, 0.f }, sf::Vector2f scale={ 1.f, 1.f }, sf::Vector2f scaleFixed={ 1.f, 1.f }) |
| |
| | Following (const Following &x) |
| |
| void | updatePosition () |
| |
| void | addMethodPos (std::function< sf::Vector2f()> method) |
| |
| void | updateScale () |
| |
| void | addMethodScale (std::function< sf::Vector2f()> method) |
| |
| Following & | operator<< (const Following &x) |
| |
| void | setFollow (const AnimationPosition &base, const FollowType type, MEP::U_int32 group=-1) |
| |
| void | setFollow (const AnimationColor &base, MEP::U_int32 toFollow=MEP::ColorChannel::ALL, MEP::U_int32 group=-1) |
| |
| void | muteFollowGroup (MEP::U_int32 group) |
| |
| void | unMuteFollowGroup (MEP::U_int32 group) |
| |
| void | fullMuteFollow () |
| |
| void | fullUnMuteFollow () |
| |
| virtual void | setPosition (const sf::Vector2f pos) |
| |
| virtual void | setPosition (const Following &x) |
| |
| virtual void | movePosition (const sf::Vector2f pos) |
| |
| virtual void | setScale (const sf::Vector2f scale) |
| |
| virtual void | setScale (const Following &x) |
| |
| virtual const sf::Color & | getColor () const |
| |
| sf::Vector2f | getPosition () const |
| |
| sf::Vector2f | getScale () const |
| |
| sf::Vector2f | getOriginPosition () const |
| |
| sf::Vector2f | getOriginScale () const |
| |
| bool | isFollowerActive () const |
| |
| void | followingDebug (std::ostream &out, const char *skipLines="") const |
| |
| void | clearFollow () |
| |
A basic Text class.
Type only very important feature here is the ability of displaying the text with a position tag. The tricky part in here is that we are not able to tell the size of a Text before rendering it on a screen in order to solve the issue MEP::Text has an ability of skiping the frame. But keep in mind that this is a very costly operation.