TGUI  1.3-dev
Loading...
Searching...
No Matches
tgui::SvgImage Class Reference

Public Member Functions

 SvgImage ()
 Default constructor.
 
 SvgImage (const String &filename)
 Constructor that loads the svg from a file.
 
 ~SvgImage ()
 Destructor.
 
TGUI_NODISCARD bool isSet () const
 Returns whether the object stores an svg that was successfully loaded.
 
TGUI_NODISCARD Vector2f getSize () const
 Returns the width and height values read from the svg.
 
void rasterize (BackendTexture &texture, Vector2u size)
 

Constructor & Destructor Documentation

◆ SvgImage()

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

Constructor that loads the svg from a file.

Parameters
filenameFilename of the svg image

Member Function Documentation

◆ getSize()

TGUI_NODISCARD 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: