LGUI2:Radial Items
Jump to navigation
Jump to search
A Radial Item in LavishGUI 2 maps radial layout functionality to a child element for a radialpanel.
Defining a Radial Item
A Radial Item is defined by a JSON object.
Radial Item properties | |
---|---|
arcLength | A numeric value specifying the Radial Item's arc length, in degrees |
innerRadius | A numeric value specifying the Radial Item's inner radius, in degrees (If 0, the radialpanel's dead zone value is used) |
outerRadius | A numeric value specifying the Radial Item's outer radius, in degrees (If 0, the radialpanel's live zone value is used) |
arcMargins | Either one numeric value specifying the arc length of both margins in degrees (clockwise and counter-clockwise ends of the Radial Item), or an Array of 2 numeric values first specifying the left (counter-clockwise) and then right (clockwise) margins. |
borderBrush | A Brush definition specifying the brush for a border around the Radial Item |
backgroundBrush | A Brush definition specifying the brush for the background inside the border |
borderThickness | A Thickness definition specifying the thickness for the Radial Item border |
styles | An Object containing a set of Styles that may be applied |
Radial Item Events
A Radial Item is not a Element and does not directly handle events. However, if the mouse is over a Radial Item, onMouseButtonMove is sent to its child Element as onRadialItemMouseButtonMove.
Radial Item Styles
Radial Item styles | |
---|---|
gotMouseOver | The Radial Item has gained Mouse Over (mouse is somewhere within this Radial Item's bounds) |
lostMouseOver | The Radial Item has lost Mouse Over (mouse is somewhere outside this Radial Item) |
Examples
LavishGUI 2 Topics