Module ui.widget.container.widgetcontainer

WidgetContainer is a container for one or multiple Widgets.

It is the base class for all the container widgets.

Child widgets are stored in WidgetContainer as conventional array items:

WidgetContainer:new{
    ChildWidgetFoo:new{},
    ChildWidgetBar:new{},
    ...
}

It handles event propagation and painting (with different alignments) for its children.

Functions

WidgetContainer:clear () Delete all child widgets
WidgetContainer:handleEvent (event) WidgetContainer will pass event to its children by calling their handleEvent methods.


Functions

WidgetContainer:clear ()
Delete all child widgets
WidgetContainer:handleEvent (event)
WidgetContainer will pass event to its children by calling their handleEvent methods. If no child consumes the event (by returning true), it will try to react to the event by itself.

Parameters:

Returns:

    bool true if event is consumed, othewise false. A consumed event will not be sent to other widgets.
generated by LDoc 1.4.6 Last updated 2017-10-08 14:57:40