Background

Defines a Background Component.

Summary
BackgroundDefines a Background Component.
Functions
new
New BackgroundA Component defining a Frame’s background.
Variables
contentEither an Image Component or a Brush Component.
alignmentAn Alignment Enum.
repetitionA Repeat Enum.
stylesheetThis Component’s Stylesheet.
Functions
updateStylesheetUpdates the Component’s stylesheet.
Properties
Background Properties

Functions

new

local function new (_,
init_content,
init_alignment,
init_repeat)

Parameters

init_contentEither a Brush or Image Component.
init_alignmentInitial Alignment of the Background content.  Default is top-left.
init_repeatInitial Repeat rules for the Background content.  Default is repeat-xy.

Returns

A new Background Component.

New Background

A Component defining a Frame’s background.

Summary
Variables
contentEither an Image Component or a Brush Component.
alignmentAn Alignment Enum.
repetitionA Repeat Enum.
stylesheetThis Component’s Stylesheet.
Functions
updateStylesheetUpdates the Component’s stylesheet.
Properties
Background Properties

Variables

content

local content

Either an Image Component or a Brush Component.

alignment

local alignment

An Alignment Enum.  Defaults to TopLeft.

repetition

local repetition

A Repeat Enum.  Defaults to RepeatXY.

stylesheet

local stylesheet

This Component’s Stylesheet.  Generated via updateStylesheet.

Functions

updateStylesheet

local function updateStylesheet ()

Updates the Component’s stylesheet.  Used by the containing Frame.

Properties

Background Properties

ContentGets and sets the Image or Brush used by the Background Component.
AlignmentGets and sets the Background Component’s content Alignment.
RepeatGets and sets the Background Component’s Repeat rule.
StylesheetUpdates and returns the Background Component’s stylesheet.
local function new (_,
init_content,
init_alignment,
init_repeat)
Defines the primary container for Vyzor Components.
local content
Either an Image Component or a Brush Component.
local alignment
An Alignment Enum.
local repetition
A Repeat Enum.
local stylesheet
This Component’s Stylesheet.
local function updateStylesheet ()
Updates the Component’s stylesheet.
Defines a Brush Component.
Defines an Image Component.
Close