Defines a Background Component.
Background | Defines a Background Component. |
Functions | |
new | |
New Background | A Component defining a Frame’s background. |
Variables | |
content | Either an Image Component or a Brush Component. |
alignment | An Alignment Enum. |
repetition | A Repeat Enum. |
stylesheet | This Component’s Stylesheet. |
Functions | |
updateStylesheet | Updates the Component’s stylesheet. |
Properties | |
Background Properties |
local function new ( _, init_content, init_alignment, init_repeat )
init_content | Either a Brush or Image Component. |
init_alignment | Initial Alignment of the Background content. Default is top-left. |
init_repeat | Initial Repeat rules for the Background content. Default is repeat-xy. |
A new Background Component.
A Component defining a Frame’s background.
Variables | |
content | Either an Image Component or a Brush Component. |
alignment | An Alignment Enum. |
repetition | A Repeat Enum. |
stylesheet | This Component’s Stylesheet. |
Functions | |
updateStylesheet | Updates the Component’s stylesheet. |
Properties | |
Background Properties |
local stylesheet
This Component’s Stylesheet. Generated via updateStylesheet.
local function updateStylesheet ()
Updates the Component’s stylesheet. Used by the containing Frame.
Content | Gets and sets the Image or Brush used by the Background Component. |
Alignment | Gets and sets the Background Component’s content Alignment. |
Repeat | Gets and sets the Background Component’s Repeat rule. |
Stylesheet | Updates and returns the Background Component’s stylesheet. |
local function new ( _, init_content, init_alignment, init_repeat )
Either an Image Component or a Brush Component.
local content
An Alignment Enum.
local alignment
A Repeat Enum.
local repetition
This Component’s Stylesheet.
local stylesheet
Updates the Component’s stylesheet.
local function updateStylesheet ()