class Fl_Fixed_Group

Class Hierarchy

Include Files


This group widget can have its position attached to the edges of a parent widget (by defaut, the parent window), such that during window resizes, this widget's position follows the attached-to parent's edges, without the widget itself or its children changing in size.

This group is an alternative to fltk's long standing resizable() techniques of using carefully positioned invisible widgets to dictate resizing behavior. In some cases this group may be an easier way to achieve a group of widgets that do not change in size, while still maintaining their intended positions.

NOTE: This widget will only work correctly with fltk 1.1.10 and up, or can work with older releases only if Albrecht's fltk STR#2032 patch has been applied.


Fl_Fixed_Group::Fl_Fixed_Group(int x, int y, int w, int h, const char *label = 0)

Creates a new Fl_Fixed_Group widget using the given position, size, and label string.


The destructor also deletes all the children. This behavior is inherited from Fl_Group.

int Fl_Fixed_Group::attach(int edge)
int Fl_Fixed_Group::attach() const

Gets or sets the edges of the parent widget to be attached to. In all cases the group and its children will not change in size, only in position.