Description Usage Arguments Details Note Examples
Some toolkit packages provide a widget to display an SVG file. This widget allows this to be embedded within a gWidgets window.
1 2 3 4 |
filename |
SVG file |
width |
width in pixels of widget |
height |
height in pixels of widget |
handler |
Called on click event |
action |
Used to parameterize callback specified by handler |
container |
Container to attach widget to |
... |
Passed to add method of container. |
toolkit |
Which GUI toolkit to use |
The svalue
method returns the current filename.
The svalue<-
method can be used to set a new file to display.
The addhandlerclicked(obj, handler, action, ...)
method where handler has
first argument h
has the additional values h\$x
and
h\$y
where these are pixel values for where the mouse click occurred.
This is implemented in Qt only (and gWidgetsWWW).
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.