Image

Defines an Image Component.

Summary
ImageDefines an Image Component.
Functions
new
New ImageThis Components hold image data.
Variables
alignmentAn Alignment Enum, determing positioning of the image.
stylesheetThe Image Component’s stylesheet.
Functions
updateStylesheetUpdates the Image’s stylesheet.
Properties
Image Properties

Functions

new

local function new (_,
url,
init_alignment)

Parameters

urlThe filepath of the image used by the Image Component.
init_alignmentThe Alignment of the Image within the Frame.  Defaults to top-left.

Returns

A new Image Component.

New Image

This Components hold image data.

Summary
Variables
alignmentAn Alignment Enum, determing positioning of the image.
stylesheetThe Image Component’s stylesheet.
Functions
updateStylesheetUpdates the Image’s stylesheet.
Properties
Image Properties

Variables

alignment

local alignment

An Alignment Enum, determing positioning of the image.

stylesheet

local stylesheet

The Image Component’s stylesheet.  Generated via updateStylesheet.

Functions

updateStylesheet

local function updateStylesheet ()

Updates the Image’s stylesheet.  You’ll notice, in other Components that use Image, that they call Url directly.  This is because an image is handled different by QT when it’s used directly in a Frame as opposed to a Background or Border.

Properties

Image Properties

UrlReturns the Image’s filepath, made Stylesheet appropriate.
RawUrlReturns the Image’s filepath.
AlignmentGets and sets the Image Component’s Alignment.
StylesheetUpdates and returns the Image Component’s stylesheet.
local function new (_,
url,
init_alignment)
local alignment
An Alignment Enum, determing positioning of the image.
local stylesheet
The Image Component’s stylesheet.
local function updateStylesheet ()
Updates the Image’s stylesheet.
Defines the primary container for Vyzor Components.
Returns the Image’s filepath, made Stylesheet appropriate.
Defines a Background Component.
Defines the Border Component.
Close