121 int fixed_size_size_;
122 int fixed_size_alloc_;
136 Fl_Flex(
int X,
int Y,
int W,
int H,
const char *L = 0);
142 Fl_Flex(
int w,
int h,
int direction);
143 Fl_Flex(
int x,
int y,
int w,
int h,
int direction);
167 void init(
int t = VERTICAL);
169 virtual int alloc_size(
int size)
const;
189 void need_layout(
int set) {
190 if (set) need_layout_ =
true;
191 else need_layout_ =
false;
214 int margin()
const {
return margin_left_; }
230 int margin(
int *left,
int *top,
int *right,
int *bottom)
const {
231 if (left) *left = margin_left_;
232 if (top) *top = margin_top_;
233 if (right) *right = margin_right_;
234 if (bottom) *bottom = margin_bottom_;
235 if (margin_left_ == margin_top_ && margin_top_ == margin_right_ && margin_right_ == margin_bottom_)
262 margin_left_ = margin_top_ = margin_right_ = margin_bottom_ = m;
282 void margin(
int left,
int top,
int right,
int bottom) {
283 margin_left_ = left < 0 ? 0 : left;
284 margin_top_ = top < 0 ? 0 : top;
285 margin_right_ = right < 0 ? 0 : right;
286 margin_bottom_ = bottom < 0 ? 0 : bottom;
306 gap_ = g < 0 ? 0 : g;
Fl_Group and Fl_End classes.
Fl_Flex is a container (layout) widget for one row or one column of widgets.
Definition Fl_Flex.H:114
int gap() const
Return the gap size of the widget.
Definition Fl_Flex.H:293
bool need_layout() const
Returns whether layout calculation is required.
Definition Fl_Flex.H:199
void gap(int g)
Set the gap size of the widget.
Definition Fl_Flex.H:305
void margin(int m, int g=-1)
Set the margin and optionally the gap size of the widget.
Definition Fl_Flex.H:259
int margin() const
Returns the left margin size of the widget.
Definition Fl_Flex.H:214
int horizontal() const
Returns non-zero (true) if Fl_Flex alignment is horizontal (row mode).
Definition Fl_Flex.H:318
void fixed(Fl_Widget &w, int size)
Set the horizontal or vertical size of a child widget.
Definition Fl_Flex.H:158
void spacing(int i)
Sets the number of extra pixels of blank space that are added between the children.
Definition Fl_Flex.H:347
void margin(int left, int top, int right, int bottom)
Set the margin sizes at all four edges of the Fl_Flex widget.
Definition Fl_Flex.H:282
int spacing() const
Gets the number of extra pixels of blank space that are added between the children.
Definition Fl_Flex.H:334
int margin(int *left, int *top, int *right, int *bottom) const
Returns all (four) margin sizes of the widget.
Definition Fl_Flex.H:230
@ HORIZONTAL
horizontal layout (one row)
Definition Fl_Flex.H:130
The Fl_Group class is the 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:569
void end()
Exactly the same as current(this->parent()).
Definition Fl_Group.cxx:73
void resize(int, int, int, int) FL_OVERRIDE
Resizes the Fl_Group widget and all of its children.
Definition Fl_Group.cxx:823
void draw() FL_OVERRIDE
Draws the widget.
Definition Fl_Group.cxx:926
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46