Public Member Functions | |
Picture () | |
Default constructor. More... | |
Picture (const Picture ©) | |
Copy constructor. More... | |
virtual | ~Picture () |
Destructor. More... | |
Picture & | operator= (const Picture &right) |
Overload of assignment operator. More... | |
virtual bool | load (const std::string &filename) |
Load an image from a file. More... | |
virtual void | setSize (float width, float height) |
Changes the size of the picture. More... | |
virtual Vector2u | getSize () const |
Returns the size of the picture, unaffected by scaling. More... | |
virtual Vector2f | getScaledSize () const |
Returns the size of the picture, after the scaling transformation. More... | |
virtual std::string | getLoadedFilename () const |
Returns the filename that was used to load the picture. More... | |
Public Member Functions inherited from tgui::OBJECT | |
OBJECT () | |
Default constructor. More... | |
OBJECT (const OBJECT ©) | |
Copy constructor. More... | |
virtual | ~OBJECT () |
Destructor. More... | |
OBJECT & | operator= (const OBJECT &right) |
Overload of assignment operator. More... | |
virtual void | show () |
Shows the object. More... | |
virtual void | hide () |
Hides the object. More... | |
virtual bool | isVisible () const |
Returns true when the object is visible. More... | |
virtual void | enable () |
Enables the object. More... | |
virtual void | disable () |
Disables the object. More... | |
virtual bool | isEnabled () const |
Returns true when the object is enabled. More... | |
virtual bool | isDisabled () const |
Returns true when the object is disabled. More... | |
virtual bool | isLoaded () const |
Returns true when the object is loaded successfully. More... | |
void | focus () |
Focus the object. More... | |
void | unfocus () |
Unfocus the object. More... | |
void | focusNextObject () |
Focuses the next object. More... | |
virtual bool | isFocused () const |
Returns true when the object is focused and false otherwise. More... | |
virtual ObjectTypes | getObjectType () const |
Returns the type of the object. More... | |
virtual void | moveToFront () |
Places the object before all other objects. More... | |
virtual void | moveToBack () |
Places the object behind all other objects. More... | |
tgui::Picture::Picture | ( | ) |
Default constructor.
tgui::Picture::Picture | ( | const Picture & | copy | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Returns the filename that was used to load the picture.
When the picture has not been loaded yet then this function will return an empty string.
|
virtual |
Returns the size of the picture, after the scaling transformation.
Implements tgui::OBJECT.
Reimplemented in tgui::SpriteSheet.
|
virtual |
Returns the size of the picture, unaffected by scaling.
Implements tgui::OBJECT.
Reimplemented in tgui::SpriteSheet.
|
virtual |
Load an image from a file.
filename | The absolute or relative filename of the picture that should be loaded. |
|
virtual |
Changes the size of the picture.
width | The new width of the picture |
height | The new height of the picture |
Implements tgui::OBJECT.
Reimplemented in tgui::SpriteSheet.