Group - siffiejoe/lua-fltk4lua GitHub Wiki
Group:
Corresponds to:
Fl_Group
Inherits from:
Widget
Constructors
fl.Group( int X, int Y, int W, int H, *str label ) ==> userdata Widgetfl.Group{ table entries } ==> userdata Widget( table constructor syntax )
Functions
- methods defined for
Widgetuserdata type fl.Group.current() ==> *userdata Fl_Groupgetfl.Group.current( *userdata Fl_Group )set
( Fl_Group )obj:add( userdata Widget )( move widget to end of current group )
obj:add_resizable( userdata Widget )( add and make resizable )
obj:begin()( set group so you can build widget tree )
obj:begin_group()( same as
obj:begin())obj:child( int location ) ==> userdata array( Returns array()[location] )
obj:clear()( deletes all child widgets recursively )
obj:end_group()( corresponds to
Fl_Group::end())obj:find( userdata widget ) ==> int indexobj:insert( userdata widget, int @index )obj:remove( int index )
Properties
- properties defined for
Widgetuserdata type obj.children ==> int #widgets( # of child widgets in group )
obj.resizable ==> *userdata widgetgetobj.resizable = *userdata widgetset
( resizable )obj.clip_children ==> bool clippedobj.clip_children = bool clip
( 1 if group clips widgets to bounding box )