21 #include <SFML/UI/AbstractButton.hpp>
22 #include <SFML/UI/IText.hpp>
42 m_textureFired(0), m_text(), m_clicked(false),
58 Button(sf::Texture
const &texture, sf::Texture
const &textureFocused, sf::Texture
const &textureFired)
60 m_textureFired(&textureFired), m_text(), m_clicked(false),
76 Button(C *
object,
void (C::*
function)())
78 m_textureFired(0), m_text(), m_clicked(false),
79 m_task(new
sf::priv::ThreadMemberFunc<C>(function, object))
97 Button(C *
object,
void (C::*
function)(), sf::Texture
const &texture, sf::Texture
const &textureFocused, sf::Texture
const &textureFired)
99 m_textureFired(&textureFired), m_text(), m_clicked(false),
100 m_task(new
sf::priv::ThreadMemberFunc<C>(function, object))
116 m_textureFired(0), m_text(), m_clicked(false),
117 m_task(new
sf::priv::ThreadFunctor<F>(function))
134 Button(F
function, sf::Texture
const &texture, sf::Texture
const &textureFocused, sf::Texture
const &textureFired)
136 m_textureFired(&textureFired), m_text(), m_clicked(false),
137 m_task(new
sf::priv::ThreadFunctor<F>(function))
161 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
228 virtual const sf::String&
getText()
const;
238 virtual void setText(sf::String
const &text);
245 virtual const sf::Font*
getFont()
const;
252 virtual void setFont(sf::Font
const &font);
289 sf::Texture
const *m_textureFired;
292 sf::priv::ThreadFunc *m_task;
An interface that allow component to have a text.