Size

Defines the Size Supercomponent.

Summary
SizeDefines the Size Supercomponent.
Functions
new
New SizeA Supercomponent used only within Frames to manage space.
Variables
dimsContains the user-defined dimensions of the Frame.
abs_dimsContains the Frame’s generated, window dimensions.
content_dimsContains the Frame’s generated, Content Rectangle dimensions.
Functions
updateAbsoluteGenerates the absolute dimensions (abs_dims) of the Frame.
Properties
Size Properties

Functions

new

local function new (_,
frame,
init_width,
init_height,
is_first)

Parameters

frameThe Frame to which this Size Supercomponent belongs.
init_widthInitial width of the Frame.
init_heightInitial height of the Frame.
is_firstDetermines whether or not the parent Frame is the HUD.

Returns

A new Size Supercomponent.

New Size

A Supercomponent used only within Frames to manage space.  Only used internally.  Should not be exposed.

Summary
Variables
dimsContains the user-defined dimensions of the Frame.
abs_dimsContains the Frame’s generated, window dimensions.
content_dimsContains the Frame’s generated, Content Rectangle dimensions.
Functions
updateAbsoluteGenerates the absolute dimensions (abs_dims) of the Frame.
Properties
Size Properties

Variables

dims

local dims

Contains the user-defined dimensions of the Frame.

abs_dims

local abs_dims

Contains the Frame’s generated, window dimensions.

content_dims

local content_dims

Contains the Frame’s generated, Content Rectangle dimensions.

Functions

updateAbsolute

local function updateAbsolute ()

Generates the absolute dimensions (abs_dims) of the Frame.  Also generates content dimensions content_dims.

Properties

Size Properties

DimensionsGets and sets the relative (user-defined) dimensions (dims) of the Frame.
AbsoluteReturns the absolute dimensions (abs_dims) of the Frame.
ContentReturns dimensions of the Content Rectangle (content_dims).
WidthGets and sets the relative width of the Frame.
HeightGets and sets the relative height of the Frame.
AbsoluteWidthReturns the absolute width of the Frame.
AbsoluteHeightReturns the absolute height of the Frame.
ContentWidthReturns the width of the Content Rectangle.
ContentHeightReturns the height of the Content Rectangle.
local function new (_,
frame,
init_width,
init_height,
is_first)
Defines the primary container for Vyzor Components.
local dims
Contains the user-defined dimensions of the Frame.
local abs_dims
Contains the Frame’s generated, window dimensions.
local content_dims
Contains the Frame’s generated, Content Rectangle dimensions.
local function updateAbsolute ()
Generates the absolute dimensions (abs_dims) of the Frame.
This is the primary Vyzor Frame, responsible for managing all other Frames.
Close