26 #ifndef TGUI_PICTURE_HPP 27 #define TGUI_PICTURE_HPP 30 #include <TGUI/ClickableWidget.hpp> 97 bool load(
const std::string& filename);
108 void loadFromTexture(
const sf::Texture& texture);
118 const std::string& getLoadedFilename()
const;
134 virtual void setPosition(
float x,
float y);
145 virtual void setSize(
float width,
float height);
160 void setSmooth(
bool smooth);
171 bool isSmooth()
const;
184 virtual void setTransparency(
unsigned char transparency);
190 virtual bool mouseOnWidget(
float x,
float y);
198 virtual bool setProperty(std::string property,
const std::string& value);
205 virtual bool getProperty(std::string property, std::string& value)
const;
213 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
222 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
233 AllPictureCallbacks = ClickableWidgetCallbacksCount - 1,
234 PictureCallbacksCount = ClickableWidgetCallbacksCount
241 std::string m_LoadedFilename;
251 #endif // TGUI_PICTURE_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
Definition: TextureManager.hpp:52
PictureCallbacks
Defines specific triggers to Picture.
Definition: Picture.hpp:231
Definition: Picture.hpp:38