26 #ifndef _TGUI_LOADING_BAR_INCLUDED_
27 #define _TGUI_LOADING_BAR_INCLUDED_
46 LoadingBar(
const LoadingBar& copy);
52 virtual ~LoadingBar();
58 LoadingBar& operator= (
const LoadingBar& right);
64 virtual void initialize();
70 virtual LoadingBar* clone();
85 virtual bool load(
const std::string& pathname);
91 virtual void setSize(
float width,
float height);
97 virtual Vector2u getSize()
const;
103 virtual Vector2f getScaledSize()
const;
111 virtual std::string getLoadedPathname()
const;
120 virtual void setMinimum(
unsigned int minimum);
129 virtual void setMaximum(
unsigned int maximum);
137 virtual void setValue(
unsigned int value);
145 virtual unsigned int getMinimum()
const;
153 virtual unsigned int getMaximum()
const;
159 virtual unsigned int getValue()
const;
169 virtual unsigned int incrementValue();
177 virtual void setText(
const sf::String& text);
183 virtual sf::String getText()
const;
192 virtual void setTextFont(
const sf::Font& font);
198 virtual const sf::Font* getTextFont()
const;
204 virtual void setTextColor(
const sf::Color& color);
210 virtual const sf::Color& getTextColor()
const;
218 virtual void setTextSize(
unsigned int size);
224 virtual unsigned int getTextSize()
const;
230 bool mouseOnObject(
float x,
float y);
241 virtual void recalculateSize();
248 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
254 unsigned int m_Minimum;
255 unsigned int m_Maximum;
256 unsigned int m_Value;
265 sf::Texture* m_TextureBack_L;
266 sf::Texture* m_TextureBack_M;
267 sf::Texture* m_TextureBack_R;
268 sf::Texture* m_TextureFront_L;
269 sf::Texture* m_TextureFront_M;
270 sf::Texture* m_TextureFront_R;
272 sf::Sprite m_SpriteBack_L;
273 sf::Sprite m_SpriteBack_M;
274 sf::Sprite m_SpriteBack_R;
275 sf::Sprite m_SpriteFront_L;
276 sf::Sprite m_SpriteFront_M;
277 sf::Sprite m_SpriteFront_R;
281 unsigned int m_TextSize;
284 std::string m_LoadedPathname;
292 #endif //_TGUI_LOADING_BAR_INCLUDED_
The parent struct for every object.
Definition: Objects.hpp:36
Definition: LoadingBar.hpp:35