uvi-script
Musical event scripting with Lua
Loading...
Searching...
No Matches

SVG widget. More...

Inheritance diagram for SVG:
Widget

Public Member Functions

 SVG (string svgPath)
 creates an SVG widget on the user interface.
 

Public Attributes

string svg
 path to SVG file
 
string rectanglePlacement
 placement/alignment of the SVG within the widget bounds
 
- Public Attributes inherited from Widget
string name
 widget name
 
string displayName
 widget display name
 
string tooltip
 widget tooltip, default is name
 
int x
 x position in pixels
 
int y
 y position in pixels
 
int width
 widget width in pixels
 
int height
 widget height in pixels
 
table size
 widget size {width, height}
 
table position
 widget position {x,y}
 
table bounds
 widget bounding rect {x,y,width,height}
 
number alpha
 transparency value between 0.0 and 1.0
 
bool enabled
 boolean flag to enable / disable the widget
 
bool visible
 boolean flag to toggle widget visibility
 
bool interceptsMouseClicks
 boolean flag to toggle mouse handling on widget
 
bool showLabel
 show widgets label if any
 
bool persistent
 flag to tell if the widget values should be serialized when saving.
 
function changed
 callback function used by child widgets to be notified of changes
 

Detailed Description

SVG widget.

Displays a Scalable Vector Graphics image.

local svg = SVG("myImage.svg")
SVG(string svgPath)
creates an SVG widget on the user interface.
string svg
path to SVG file
Definition ui.cpp:1841

Constructor & Destructor Documentation

◆ SVG()

SVG::SVG ( string svgPath)

creates an SVG widget on the user interface.

Parameters
svgPathpath to the SVG file