Class Frame

The primary container for Vyzor Components.

Methods

Frame:Frame (_name, _x, _y, _width, _height) Frame constructor.

Class Frame

self.Name.get () Returns the Frame's name.
self.IsBounding.get () Returns whether or not the Frame is bounding.
self.IsBounding.set (value) Sets whether or not the Frame is bounding.
self.BoundingMode.get () Returns the BoundingMode for the Frame.
self.BoundingMode.set (value) Sets the BoundingMode for this Frame.
self.Container.get () Returns the parent Frame.
self.Container.set (value) Sets the parent Frame.
self.Components.get () Returns the Components in the Frame.
self.MiniConsoles.get () Returns the MiniConsoles in the Frame.
self.Compounds.get () Returns the Compounds in the Frame.
self.Frames.get () Returns the Frames in the Frame.
self.Position.get () Returns the Position supercomponent.
self.Size.get () Returns the Size supercomponent.
self.Stylesheet.get () Updates and returns the stylesheet for the Frame.
self.Callback.get () Returns the callback for the Frame.
self.Callback.set (value) Sets the callback for the Frame to be used when clicked.
self.CallbackArguments.get () Returns the callback arguments passed to the callback.
self.CallbackArguments.set (value) Sets the callback arguments to be passed to the callback.
self.IsDrawn.get () Returns a flag signalling whether or not the Frame has been drawn.
self.IsPlaceholder.get () Returns a flag signaling whether or not a label will be drawn for this Frame.
self.IsPlaceholder.set (value) Toggles whether or not to draw a label for this Frame.
self:Add (object) Adds a new object.
self:Remove (object) Removes an object.
self:Draw () Draws this Frame.
self:Resize (width, height) Resizes the Frame and its children.
self:Move (x, y) Repositions the Frame and its children.
self:Hide ([skipChildren=false]) Hides the Frame and, optionally, its children.
self:Show ([skipChildren=false]) Reveals the Frame and, optionally, its children.
self:Echo (text) Displays text on the Frame.
self:CEcho (text) Displays text on the Frame.
self:Clear ([clearChildren=false]) Clears all text from the Frame and, optionally, its children.


Methods

Frame:Frame (_name, _x, _y, _width, _height)
Frame constructor.

Parameters:

  • _name string The name of the Frame, used for addressing.
  • _x number Initial X position of the Frame. Defaults to 0.
  • _y number Initial Y position of the Frame. Defaults to 0.
  • _width number Initial width of the Frame. Defaults to 1.
  • _height number Initial height of the Frame. Defaults to 1.

Returns:

    Frame

Class Frame

self.Name.get ()
Returns the Frame's name.

Returns:

    string
self.IsBounding.get ()
Returns whether or not the Frame is bounding.

Returns:

    bool
self.IsBounding.set (value)
Sets whether or not the Frame is bounding.

Parameters:

  • value bool
self.BoundingMode.get ()
Returns the BoundingMode for the Frame.

Returns:

    BoundingMode
self.BoundingMode.set (value)
Sets the BoundingMode for this Frame.

Parameters:

self.Container.get ()
Returns the parent Frame.

Returns:

    Frame
self.Container.set (value)
Sets the parent Frame. Raises the sysWindowResizeEvent upon completion.

Parameters:

self.Components.get ()
Returns the Components in the Frame.

Returns:

    table
self.MiniConsoles.get ()
Returns the MiniConsoles in the Frame.

Returns:

    table
self.Compounds.get ()
Returns the Compounds in the Frame.

Returns:

    table
self.Frames.get ()
Returns the Frames in the Frame.

Returns:

    table
self.Position.get ()
Returns the Position supercomponent.

Returns:

    Position
self.Size.get ()
Returns the Size supercomponent.

Returns:

    Size
self.Stylesheet.get ()
Updates and returns the stylesheet for the Frame.

Returns:

    string
self.Callback.get ()
Returns the callback for the Frame.

Returns:

    string
self.Callback.set (value)
Sets the callback for the Frame to be used when clicked.

Parameters:

  • value string The function identifier, globally indexed.
self.CallbackArguments.get ()
Returns the callback arguments passed to the callback.

Returns:

    table or string
self.CallbackArguments.set (value)
Sets the callback arguments to be passed to the callback.

Parameters:

  • value table or string A table of arguments or a single argument.
self.IsDrawn.get ()
Returns a flag signalling whether or not the Frame has been drawn.

Returns:

    bool
self.IsPlaceholder.get ()
Returns a flag signaling whether or not a label will be drawn for this Frame.

Returns:

    bool
self.IsPlaceholder.set (value)
Toggles whether or not to draw a label for this Frame.

Parameters:

  • value bool
self:Add (object)
Adds a new object.

Parameters:

  • object string, Frame, Component or Compound A valid Frame name or object, Component, or Compound.
self:Remove (object)
Removes an object.

Parameters:

  • object string, Frame, Component or Compound A valid Frame name or object, Component Subtype or object, or Compound.
self:Draw ()
Draws this Frame. Is only called Vyzor:Draw(). Should not be used directly on a Frame.
self:Resize (width, height)
Resizes the Frame and its children.

Parameters:

  • width number The Frame's new width.
  • height number The Frame's new height.
self:Move (x, y)
Repositions the Frame and its children.

Parameters:

  • x number The Frame's new X position.
  • y number The Frame's new Y position.
self:Hide ([skipChildren=false])
Hides the Frame and, optionally, its children.

Parameters:

  • skipChildren bool If true, this will not hide any of the Frame's children. (default false)
self:Show ([skipChildren=false])
Reveals the Frame and, optionally, its children.

Parameters:

  • skipChildren bool If true, this will not show any of the Frame's children. (default false)
self:Echo (text)
Displays text on the Frame.

Parameters:

  • text string The text to be displayed.
self:CEcho (text)
Displays text on the Frame.

Parameters:

  • text string The text to be displayed.
self:Clear ([clearChildren=false])
Clears all text from the Frame and, optionally, its children.

Parameters:

  • clearChildren bool Will call clear on child Frames if true. (default false)
generated by LDoc 1.4.6 Last updated 2017-11-15 22:27:55