21 #include <SFML/UI/Component.hpp>
51 Focusable(sf::Texture
const &texture, sf::Texture
const &textureFocused);
131 sf::Texture
const *m_textureFocused;
virtual bool isCoordOnComponent(int x, int y) const
The base class for all UI components that can be focused.
Focusable()
Creates an empty Component Focusable, without textures.
const sf::Texture * getTextureFocused() const
void setFocused(bool focused)
Set if the component is focused.
virtual bool checkClickOn(int x, int y) const
The base class for all UI components.
void setTextureFocused(const sf::Texture &textureFocused)
Set the texture that is displayed when the component is displayed.
virtual void gainFocus()
Called when the component gain focus.
virtual void lostFocus()
Called when the component lost focus.