BorderSide

Defines a BorderSide Component.

Summary
BorderSideDefines a BorderSide Component.
Functions
newShould only be used as an argument to a Border Component.
New BorderSideA Subcomponent that defines individual sides of a Border component.
Variables
is_sideIs it a Left or Right? 
widthBorderSide’s width.
styleBorderSide’s BorderStyle.
brushBorderSide’s Brush Component.
radiusBorderSide’s radius.
styletableA table holding the Stylesheets of all Components.
Functions
updateStyletableUpdates the BorderSide’s stylesheet table.
Properties
BorderSide Properties

Functions

new

local function new (_,
init_width,
init_style,
init_content,
init_radius)

Should only be used as an argument to a Border Component.

Parameters

init_widthThe BorderSide’s initial width.
init_styleThe BorderSide’s initial BorderStyle.  Defaults to None.
init_contentThe BorderSide’s initial Brush or Image.
init_radiusThe radius of the BorderSide’s corners.  Only relevant for top and bottom BorderSides.

Returns

A new BorderSide Subcomponent.

New BorderSide

A Subcomponent that defines individual sides of a Border component.

Summary
Variables
is_sideIs it a Left or Right? 
widthBorderSide’s width.
styleBorderSide’s BorderStyle.
brushBorderSide’s Brush Component.
radiusBorderSide’s radius.
styletableA table holding the Stylesheets of all Components.
Functions
updateStyletableUpdates the BorderSide’s stylesheet table.
Properties
BorderSide Properties

Variables

is_side

local is_side

Is it a Left or Right?  Only Top and Bottom use radius, as per QT.

width

local width

BorderSide’s width.

style

local style

BorderSide’s BorderStyle.  Defaults to None.

brush

BorderSide’s Brush Component.

radius

local radius

BorderSide’s radius.  Defaults to 0.

styletable

local styletable

A table holding the Stylesheets of all Components.  This makes indexing easier for the Border Component.

Functions

updateStyletable

local function updateStyletable ()

Updates the BorderSide’s stylesheet table.

Properties

BorderSide Properties

WidthGets and sets the BorderSide Subcomponent’s width.
StyleGets and sets the BorderSide’s BorderStyle.
ContentGets and sets the BorderSide’s Brush or Image Component.
RadiusGets and sets the BorderSide’s radius.
IsSideGets and sets the BorderSide’s is_side value.  Must be boolean.
StyletableUpdates and returns the BorderSide’s stylesheet table.
local function new (_,
init_width,
init_style,
init_content,
init_radius)
Should only be used as an argument to a Border Component.
Defines the Border Component.
local is_side
Is it a Left or Right? 
local width
BorderSide’s width.
local style
BorderSide’s BorderStyle.
local radius
BorderSide’s radius.
local styletable
A table holding the Stylesheets of all Components.
local function updateStyletable ()
Updates the BorderSide’s stylesheet table.
Close