SVG Icon

Typewidget
Dictionarywidget.svgpath
LibrarySVG Icon
Associationscom.livecode.widget.svgpath
Summary

This widget displays an SVG path as an icon. It has a default state and a "highlighted" state.

Description

This widget displays an SVG path as an icon. It has a default state and a "highlighted" state.

TypeNameSummarySyntax
propertyangle

The angle of rotation of the SVG path, in degrees clockwise.

set the angle of <widget> to <pAngle>

get the angle of <widget>

- - -fillRule

The fill rule to be used when rendering the SVG path.

set the fillRule of <widget> to <pRule>

get the fillRule of <widget>

- - -flipped

true if the SVG path is flipped top-to-bottom; false otherwise

set the flipped of <widget> to {true|false}

get the flipped of <widget>

- - -highlight

true if the SVG path is highlighted; false otherwise

set the highlight of <widget> to {true|false}

get the highlight of <widget>

- - -iconName

The name of the currently chosen icon.

get the iconName of <widget>

- - -iconPath

The path data displayed by the SVG path widget.

set the iconPath of <widget> to <pSVGPath>

get the iconPath of <widget>

- - -iconPresetName

A predefined SVG icon path names.

set the iconPresetName of <widget> to <pIconName>

get the iconPresetName of <widget>

- - -maintainAspectRatio

Whether the SVG path maintains its aspect ratio when resized.

set the maintainAspectRatio of <widget> to {true|false}

get the maintainAspectRatio of <widget>

- - -scaledHeight

The height of the bounding rect of the SVG path, in fractional pixels.

get the scaledHeight of <widget>

- - -scaledWidth

The width of the bounding rect of the SVG path, in fractional pixels.

get the scaledWidth of <widget>

widgetSVG Icon

This widget displays an SVG path as an icon. It has a default state and a "highlighted" state.

get the scaledWidth of <widget>