Module: dynamite.layout.ratio

A specialised ratio layout with dynamic client layout features.

It adds:

  • Insert points for dynamic layout editors

Info:

  • Copyright: 2016 Emmanuel Lepage Vallee
  • Release: v4.3-1413-g6ab8b2d5a-dirty
  • Originally authored by: Emmanuel Lepage Vallee <elv1313@gmail.com>
    (Full contributors list available on our github project)

Constructors

dynamite.layout.ratio.horizontal (...) Returns a new horizontal ratio layout.
dynamite.layout.ratio.vertical (...) Returns a new vertical ratio layout.

Object properties

volatile boolean Destroy itself when all children elements are gone.

Object methods

:raise_widget (self, widget) As the layout may have random subdivisions.


Constructors

dynamite.layout.ratio.horizontal (...)
Returns a new horizontal ratio layout. A ratio layout shares the available space equally among all widgets. Widgets can be added via :add(widget).

Parameters:

  • ... widget Widgets that should be added to the layout.
dynamite.layout.ratio.vertical (...)
Returns a new vertical ratio layout. A ratio layout shares the available space equally among all widgets. Widgets can be added via :add(widget).

Parameters:

  • ... widget Widgets that should be added to the layout.

Object properties

volatile boolean
Destroy itself when all children elements are gone.

Object methods

:raise_widget (self, widget)
As the layout may have random subdivisions.

Makes sure to call their "raise" too.

Parameters:

  • self The layout
  • widget The widget
generated by LDoc 1.4.6 Last updated 2021-11-13 00:35:50