TGUI  0.8.9
tgui::SvgImage Class Reference

Public Member Functions

 SvgImage ()=default
 Default constructor.
 
 SvgImage (const sf::String &filename)
 Constructor that loads the svg from a file. More...
 
 ~SvgImage ()
 Destructor.
 
bool isSet () const
 Returns whether the object stores an svg that was successfully loaded.
 
Vector2f getSize () const
 Returns the width and height values read from the svg. More...
 

Constructor & Destructor Documentation

◆ SvgImage()

tgui::SvgImage::SvgImage ( const sf::String &  filename)

Constructor that loads the svg from a file.

Parameters
filenameFilename of the svg image

Member Function Documentation

◆ getSize()

Vector2f tgui::SvgImage::getSize ( ) const

Returns the width and height values read from the svg.

Returns
Default size of the image

The documentation for this class was generated from the following file: