56class FL_EXPORT Fl_Group :
public Fl_Widget {
62 Fl_Widget* savedfocus_;
63 Fl_Widget* resizable_;
69 static Fl_Group *current_;
72 Fl_Group(
const Fl_Group&);
73 Fl_Group& operator=(
const Fl_Group&);
93 static void current(Fl_Group *g);
111 if (n < 0 || n >
children() - 1)
return NULL;
119 int find(
const Fl_Widget& o)
const {
return find(&o);}
127 Fl_Group(
int,
int,
int,
int,
const char * = 0);
140 void remove(
int index);
150 virtual int delete_child(
int n);
Fl_End()
All it does is calling Fl_Group::current()->end()
Definition Fl_Group.H:286
The Fl_Group class is the main FLTK container widget.
Definition Fl_Group.H:56
virtual void on_remove(int)
Allow derived groups to act when a child widget is removed from the group.
Definition Fl_Group.cxx:571
void end()
Exactly the same as current(this->parent()).
Definition Fl_Group.cxx:73
void add_resizable(Fl_Widget &o)
Adds a widget to the group and makes it the resizable widget.
Definition Fl_Group.H:219
virtual int on_move(int, int)
Allow derived groups to act when a widget is moved within the group.
Definition Fl_Group.cxx:499
void add(Fl_Widget *o)
See void Fl_Group::add(Fl_Widget &w)
Definition Fl_Group.H:133
Fl_Rect * bounds()
Returns the internal array of widget sizes and positions.
Definition Fl_Group.cxx:741
void add(Fl_Widget &)
The widget is removed from its current group (if any) and then added to the end of this group.
Definition Fl_Group.cxx:560
void focus(Fl_Widget *W)
Definition Fl_Group.H:252
Fl_Widget * child(int n) const
Returns the n'th child.
Definition Fl_Group.H:110
void draw_child(Fl_Widget &widget) const
Forces a child to redraw.
Definition Fl_Group.cxx:973
int children() const
Returns how many child widgets the group has.
Definition Fl_Group.H:98
Fl_Widget *& _ddfdesign_kludge()
This is for forms compatibility only.
Definition Fl_Group.H:255
virtual int on_insert(Fl_Widget *, int)
Allow derived groups to act when a widget is added as a child.
Definition Fl_Group.cxx:475
int * sizes()
Returns the internal array of widget sizes and positions.
Definition Fl_Group.cxx:799
void remove(Fl_Widget *o)
Removes the widget o from the group.
Definition Fl_Group.H:146
void draw_children()
Draws all children of the group.
Definition Fl_Group.cxx:920
void begin()
Sets the current group so you can build the widget tree by just constructing the widgets.
Definition Fl_Group.cxx:67
void update_child(Fl_Widget &widget) const
Draws a child only if it needs it.
Definition Fl_Group.cxx:959
void resizable(Fl_Widget &o)
Sets the group's resizable widget.
Definition Fl_Group.H:156
Fl_Widget *const * array() const
Returns a pointer to the array of children.
Definition Fl_Group.cxx:41
int find(const Fl_Widget *) const
Searches the child array for the widget and returns the index.
Definition Fl_Group.cxx:50
void clip_children(int c)
Controls whether the group widget clips the drawing of child widgets to its bounding box.
Definition Fl_Group.H:231
unsigned int clip_children()
Returns the current clipping mode.
Definition Fl_Group.H:239
void insert(Fl_Widget &o, Fl_Widget *before)
This does insert(w, find(before)).
Definition Fl_Group.H:139
void draw_outside_label(const Fl_Widget &widget) const
Parents normally call this to draw outside labels of child widgets.
Definition Fl_Group.cxx:984
Fl_Widget * resizable() const
Returns the group's resizable widget.
Definition Fl_Group.H:215
Fl_Group * as_group() FL_OVERRIDE
Returns an Fl_Group pointer if this widget is an Fl_Group.
Definition Fl_Group.H:242
static Fl_Group * current()
Returns the currently active group.
Definition Fl_Group.cxx:82
void resizable(Fl_Widget *o)
The resizable widget defines both the resizing box and the resizing behavior of the group and its chi...
Definition Fl_Group.H:210
int find(const Fl_Widget &o) const
See int Fl_Group::find(const Fl_Widget *w) const.
Definition Fl_Group.H:119
Rectangle with standard FLTK coordinates (X, Y, W, H).
Definition Fl_Rect.H:30
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46