Skip to content
doyousketch2 edited this page Sep 7, 2019 · 6 revisions

Group:

Corresponds to: Fl_Group

Inherits from: Widget

Constructors

  • fl.Group( int X, int Y, int W, int H, *str label ) ==> userdata Widget
  • fl.Group{ table entries } ==> userdata Widget (table constructor syntax)

Functions

  • methods defined for Widget userdata type
  • fl.Group.current() ==> *userdata Fl_Group get ( Fl_Group )
  • fl.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() ( Sets current 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 from memory recursively )
  • obj:end_group() ( corresponds to Fl_Group::end() )
  • obj:find( userdata widget ) ==> int index
  • obj:insert( userdata widget, int index )
  • obj:remove( int index )

Properties

  • properties defined for the Widget userdata type
  • obj.children ==> int #widgets ( # child widgets group has )
  • obj.resizable ==> *userdata widget get ( resizable )
  • obj.resizable = *userdata widget set ( resizable )
  • obj.clip_children ==> bool clipped ( 1 if group clips widgets to bounding box )
  • obj.clip_children = bool clip ( 1 if group clips widgets to bounding box )
Clone this wiki locally