Border

Defines the Border Component.

Summary
BorderDefines the Border Component.
Functions
new
New BorderA Component that defines a Frame’s Border.
Variables
widthThe Border’s width.
styleThe Border’s BorderStyle.
contentThe Border’s Brush or Image Component.
radiusThe Border’s radius.
bordersA table holding BorderSide Subcomponents.
stylesheetThe Border’s stylesheet.
Functions
updateStylesheetUpdates the Border Component’s stylesheet.
Properties
Border Properties

Functions

new

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

Parameters

init_widthThe Border Component’s initial width.  May be a number or a table of numbers.
init_styleThe Border Component’s initial BorderStyle.  Defaults to None.
init_contentThe Border Component’s initial content.  Can be an Image, Brush, or table of Brushes.
init_radiusThe Border Component’s initial radius, for rounded corners.  Can be a number or a table of numbers.
init_bordersThe Border Component’s initial BorderSide Subcomponents.  Must be a table containing one to four BorderSides.

Returns

A new Border Component.

New Border

A Component that defines a Frame’s Border.

Summary
Variables
widthThe Border’s width.
styleThe Border’s BorderStyle.
contentThe Border’s Brush or Image Component.
radiusThe Border’s radius.
bordersA table holding BorderSide Subcomponents.
stylesheetThe Border’s stylesheet.
Functions
updateStylesheetUpdates the Border Component’s stylesheet.
Properties
Border Properties

Variables

width

local width

The Border’s width.  Defaults to 0.

style

local style

The Border’s BorderStyle.  Defaults to None.

content

local content

The Border’s Brush or Image Component.

radius

local radius

The Border’s radius.  Makes rounded corners.  Defaults to 0.

borders

local borders

A table holding BorderSide Subcomponents.

stylesheet

local stylesheet

The Border’s stylesheet.  Generated via updateStylesheet.

Functions

updateStylesheet

local function updateStylesheet ()

Updates the Border Component’s stylesheet.

Properties

Border Properties

StyleGets and sets the BorderStyle Component.
WidthGets and sets the Border Component’s width.
ContentGets and sets the Border Component’s Brush or Image Component.
TopGets and sets an individual BorderSide Subcomponent.
RightGets and sets an individual BorderSide Subcomponent.
BottomGets and sets an individual BorderSide Subcomponent.
LeftGets and sets an individual BorderSide Subcomponent.
StylesheetUpdates and returns the Border Component’s stylesheet.
local function new (_,
init_width,
init_style,
init_content,
init_radius,
init_borders)
Defines the primary container for Vyzor Components.
local width
The Border’s width.
local style
The Border’s BorderStyle.
local content
The Border’s Brush or Image Component.
local radius
The Border’s radius.
local borders
A table holding BorderSide Subcomponents.
Defines a BorderSide Component.
local stylesheet
The Border’s stylesheet.
local function updateStylesheet ()
Updates the Border Component’s stylesheet.
Defines an Image Component.
Defines a Brush Component.
Close