26 #ifndef TGUI_ANIMATED_PICTURE_HPP 27 #define TGUI_ANIMATED_PICTURE_HPP 29 #include <TGUI/ClickableWidget.hpp> 97 bool addFrame(
const std::string& filename, sf::Time frameDuration = sf::Time());
107 void setSize(
float width,
float height);
116 virtual sf::Vector2f getSize()
const;
164 bool setFrame(
unsigned int frame);
176 int getCurrentFrame()
const;
185 sf::Time getCurrentFrameDuration()
const;
194 unsigned int getFrames()
const;
210 bool removeFrame(
unsigned int frame);
219 void removeAllFrames();
230 void setLooping(
bool loop =
true);
241 bool getLooping()
const;
250 bool isPlaying()
const;
263 virtual void setTransparency(
unsigned char transparency);
271 virtual bool setProperty(std::string property,
const std::string& value);
278 virtual bool getProperty(std::string property, std::string& value)
const;
286 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
296 virtual void update();
303 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
314 AnimationFinished = ClickableWidgetCallbacksCount * 1,
315 AllAnimatedPictureCallbacks = ClickableWidgetCallbacksCount * 2 - 1,
316 AnimatedPictureCallbacksCount = ClickableWidgetCallbacksCount * 2
322 std::vector<Texture> m_Textures;
323 std::vector<sf::Time> m_FrameDuration;
336 #endif // TGUI_ANIMATED_PICTURE_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
Load multiple images and add then behind each other to create a simple animation or even a movie...
Definition: AnimatedPicture.hpp:38
AnimatedPictureCallbacks
Defines specific triggers to AnimatedPicture.
Definition: AnimatedPicture.hpp:312