26 #ifndef TGUI_LABEL_HPP 27 #define TGUI_LABEL_HPP 30 #include <TGUI/ClickableWidget.hpp> 63 virtual Label* clone();
75 bool load(
const std::string& configFileFilename,
const std::string& sectionName =
"Label");
85 const std::string& getLoadedConfigFile()
const;
104 virtual void setSize(
float width,
float height);
120 virtual void setPosition(
float x,
float y);
134 void setText(
const sf::String& text);
143 const sf::String& getText()
const;
155 void setTextFont(
const sf::Font& font);
164 const sf::Font* getTextFont()
const;
173 void setTextColor(
const sf::Color& color);
182 const sf::Color& getTextColor()
const;
195 void setTextStyle(sf::Uint32 style);
204 sf::Uint32 getTextStyle()
const;
213 void setTextSize(
unsigned int size);
222 unsigned int getTextSize()
const;
236 void setBackgroundColor(
const sf::Color& backgroundColor);
247 const sf::Color& getBackgroundColor()
const;
261 virtual void setAutoSize(
bool autoSize);
270 virtual bool getAutoSize()
const;
278 virtual bool setProperty(std::string property,
const std::string& value);
285 virtual bool getProperty(std::string property, std::string& value)
const;
293 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
302 virtual void initialize(
Container *
const container);
308 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
319 AllLabelCallbacks = ClickableWidgetCallbacksCount - 1,
320 LabelCallbacksCount = ClickableWidgetCallbacksCount
327 std::string m_LoadedConfigFile;
329 sf::RectangleShape m_Background;
343 #endif // TGUI_LABEL_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
LabelCallbacks
Defines specific triggers to Label.
Definition: Label.hpp:317
Parent class for widgets that store multiple widgets.
Definition: Container.hpp:43