26 #ifndef _TGUI_LABEL_INCLUDED_
27 #define _TGUI_LABEL_INCLUDED_
46 virtual void initialize();
52 virtual Label* clone();
63 virtual void load(
float width,
float height,
const sf::Color& bkgColor = sf::Color::Transparent);
75 virtual void setSize(
float width,
float height);
81 virtual Vector2u getSize()
const;
87 virtual Vector2f getScaledSize()
const;
97 virtual void setText(
const sf::String& text);
103 virtual sf::String getText()
const;
112 virtual void setTextFont(
const sf::Font& font);
118 virtual const sf::Font* getTextFont()
const;
124 virtual void setTextColor(
const sf::Color& color);
130 virtual const sf::Color& getTextColor()
const;
136 virtual void setTextSize(
unsigned int size);
142 virtual unsigned int getTextSize()
const;
153 virtual void setAutoSize(
bool autoSize);
161 virtual bool getAutoSize()
const;
168 virtual bool mouseOnObject(
float x,
float y);
169 virtual void leftMousePressed(
float x,
float y);
170 virtual void leftMouseReleased(
float x,
float y);
181 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
208 #endif //_TGUI_LABEL_INCLUDED_
sf::Color backgroundColor
The background color of the label. Transparent by default.
Definition: Label.hpp:188
The parent struct for every object.
Definition: Objects.hpp:36