Difference between revisions of "LGUI2:Borders"

From Lavish Software Wiki
Jump to navigation Jump to search
(Created page with "A so-called "Standard Border" in LavishGUI 2 defines a border area, a LGUI2:Brush to paint the border area with, and an optional LGUI2:Brush to paint the inner (...")
 
(No difference)

Latest revision as of 22:55, 15 July 2018

A so-called "Standard Border" in LavishGUI 2 defines a border area, a Brush to paint the border area with, and an optional Brush to paint the inner ("background") area with.

Defining a Standard Border

Border properties are directly on an Element
Standard Border properties
borderBrush A Brush definition specifying the brush for the standard Border
backgroundBrush A Brush definition specifying the brush for the background inside the Border
borderThickness A Thickness definition specifying the thickness for the standard Border

Examples

A 240x400 window with a 3-pixel thick, solid white border around a black background
{
 "type": "window",
 "height": 400,
 "width": 240,
 "borderThickness": 3,
 "borderBrush": { "color": [ 1.0, 1.0, 1.0 ] },
 "backgroundBrush": {
   "color": [ 0, 0, 0 ],
 },
}

LavishGUI 2 Topics