Lysa.ui  0.0
Lysa 3D Engine
IconSVG Class Referenceabstract

Detailed Description

An SVG shape fitted into the widget rectangle.

Inherits from: Icon

Lua full name: lysa.ui.IconSVG

Public Member Functions

nil set_svg (uri: string)
 Loads and sets the displayed shape from the given virtual URI. More...
 
nil set_svg (uri: string, stroke_width: number)
 Loads the shape with the given stroke width. More...
 
nil set_svg (uri: string, stroke_width: number, tolerance: number)
 Loads the shape with the given stroke width and tessellation tolerance. More...
 
nil set_svg (uri: string, stroke_width: number, tolerance: number, bounds: SVGBounds)
 Loads the shape with the given stroke width, tolerance and reference bounds. More...
 
nil clear_cache ()
 Empties the cache of the SVG shapes loaded by all the IconSVG widgets. More...
 

Member Function Documentation

nil set_svg ( string  uri)

Loads and sets the displayed shape from the given virtual URI.

Parameters
uristring
nil set_svg ( string  uri,
number  stroke_width)

Loads the shape with the given stroke width.

Parameters
uristring
stroke_widthnumber
nil set_svg ( string  uri,
number  stroke_width,
number  tolerance)

Loads the shape with the given stroke width and tessellation tolerance.

Parameters
uristring
stroke_widthnumber
tolerancenumber
nil set_svg ( string  uri,
number  stroke_width,
number  tolerance,
SVGBounds  bounds)

Loads the shape with the given stroke width, tolerance and reference bounds.

Parameters
uristring
stroke_widthnumber
tolerancenumber
boundsSVGBounds
nil clear_cache ( )

Empties the cache of the SVG shapes loaded by all the IconSVG widgets.