From 4c53a5d8f4f23358a101ef6bda4b6b8ea4b95274 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sun, 31 Jan 1999 07:43:16 +0000 Subject: Added optimization for SGI builds (mike: please run autoconf before making a distribution). Documentation fixes. git-svn-id: file:///fltk/svn/fltk/trunk@259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Group.html | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'documentation/Fl_Group.html') diff --git a/documentation/Fl_Group.html b/documentation/Fl_Group.html index ccf7a3c45..2f75c46ed 100644 --- a/documentation/Fl_Group.html +++ b/documentation/Fl_Group.html @@ -73,27 +73,31 @@ variables, but you must declare the Fl_Group first, so that it is destroyed last.

void Fl_Group::add(Fl_Widget &w)
void Fl_Group::add(Fl_Widget *w)

-Adds a widget to the group at the end of the child array. If the -widget is already in a group it is removed from that group before -adding to this one. -

void Fl_Group::insert(Fl_Widget &w, int n) -
void Fl_Group::insert(Fl_Widget &w, Fl_Widget -*beforethis)

+The widget is removed from it's current group (if any) and then added +to the end of this group. + +

void Fl_Group::insert(Fl_Widget &w, int n)

The widget is removed from it's current group (if any) and then inserted into this group. It is put at index n (or at the end -if n >= children(). The second version does a -find(beforethis) and inserts using that index (at the end if -beforethis is not in this group). +if n >= children(). This can also be used to rearrange +the windgets inside a group. + +

void Fl_Group::insert(Fl_Widget &w, Fl_Widget* beforethis)

+ +This does insert(w, find(beforethis)). This will append the +widget if beforethis is not in the group.

void Fl_Group::remove(Fl_Widget &w)

Removes a widget from the group. This does nothing if the widget is not currently a child of this group. -

const Fl_Widget **Fl_Group::array() const

- Returns a pointer to the array of children. This pointer can change -when children are added or removed! +

static Fl_Group *Fl_Group::current() +
static void Fl_Group::current(Fl_Group *w)

+current() returns the currently active group. The Fl_Widget + constructor automatically does current()->add(widget) if this is not null. + To prevent new widgets from being added to a group, call Fl_Group::current(0).

void Fl_Group::begin()

begin() sets the current group so you can build the widget tree by just constructing the widgets. begin() is @@ -103,13 +107,11 @@ Fl_Window as well). begin() is exactly the same as current(t

void Fl_Group::end()

end() is exactly the same as current(this->parent()). Any new widgets added to the widget tree will be added to the parent of the group. -

static Fl_Group *Fl_Group::current() -
static void Fl_Group::current(Fl_Group *w)

-current() returns the currently active group. The Fl_Widget - constructor automatically does current()->add(widget) if this is not null. - To prevent new widgets from being added to a group, call Fl_Group::current(0). +

const Fl_Widget **Fl_Group::array() const

+ Returns a pointer to the array of children. This pointer is only + valid until the next time a child is added or removed.

Fl_Widget *Fl_Group::child(int n) const

- Returns child n, where 0 <= n < children(). + Returns array()[n]. No range checking is done!

int Fl_Group::children() const

Returns how many child widgets the group has.

int Fl_Group::find(const Fl_Widget *w) const -- cgit v1.2.3