Class Panel

A group of components.

Usage:

     -- Create an empty panel.
     local panel = Panel(0, 0)

Constructor

Panel:_init (x, y, width, height) Constructs a Panel.

Methods

Panel:setLayoutManager (layout) Sets the layout manager for this Panel.
Panel:updateLayoutManager () Updates the components in this panel according to its layout manager.


Constructor

Panel:_init (x, y, width, height)
Constructs a Panel.

Parameters:

  • x The x coordinate of the new component, relative to its parent.
  • y The y coordinate of the new component, relative to its parent.
  • width [opt] The width of the new component.
  • height [opt] The height of the new component.

Methods

Panel:setLayoutManager (layout)
Sets the layout manager for this Panel. THIS IS WIP. THE API IS LIKELY TO CHANGE.

Parameters:

  • layout The new layout manager for this panel, or nil to clear the layout manager.
Panel:updateLayoutManager ()
Updates the components in this panel according to its layout manager.
generated by LDoc 1.4.3 Last updated 2015-02-10 07:20:59