Hover

Defines a Hover Component.

Summary
HoverDefines a Hover Component.
Functions
new
New HoverThis Component defines Frame behaviour on mouse-over, and may contain other Components much like Frames.
Variables
componentsA table of Components.
stylesheetHover Component’s stylesheet.
Functions and Properties
updateStylesheetUpdates the Hover Component’s stylesheet.
Hover Properties
AddAdds a new Component to the Hover Component.
RemoveRemoves a Component from the Hover Component.
ReplaceReplaces a Component in the Hover Component.

Functions

new

local function new (_,
init_components)

Parameters

init_componentsA table of Components to be contained in this Hover Component.  Optional.

Returns

A new Hover Component.

New Hover

This Component defines Frame behaviour on mouse-over, and may contain other Components much like Frames.

Summary
Variables
componentsA table of Components.
stylesheetHover Component’s stylesheet.
Functions and Properties
updateStylesheetUpdates the Hover Component’s stylesheet.
Hover Properties
AddAdds a new Component to the Hover Component.
RemoveRemoves a Component from the Hover Component.
ReplaceReplaces a Component in the Hover Component.

Variables

components

local components

A table of Components.

stylesheet

local stylesheet

Hover Component’s stylesheet.  Generated via updateStylesheet.

Functions and Properties

updateStylesheet

local function updateStylesheet ()

Updates the Hover Component’s stylesheet.  The string generated is a combination of all Components’ stylesheets.

Hover Properties

ComponentsReturns a table copy of Hover Component’s contained Components.
StylesheetUpdates and returns the Hover Component’s stylesheet.

Add

function new_hover:Add (component)

Adds a new Component to the Hover Component.

Parameters

componentThe Component to be added.

Remove

function new_hover:Remove (subtype)

Removes a Component from the Hover Component.

Paramaters

subtypeThe Subtype of the Component to be removed.

Replace

function new_hover:Replace (component)

Replaces a Component in the Hover Component.

Parameters

componentThe Component to be added.
local function new (_,
init_components)
Defines the primary container for Vyzor Components.
local components
A table of Components.
local stylesheet
Hover Component’s stylesheet.
local function updateStylesheet ()
Updates the Hover Component’s stylesheet.
function new_hover:Add (component)
Adds a new Component to the Hover Component.
function new_hover:Remove (subtype)
Removes a Component from the Hover Component.
function new_hover:Replace (component)
Replaces a Component in the Hover Component.
Close