| 1 |
/* File : Fl_Tabs.i */ |
| 2 |
//%module Fl_Tabs |
| 3 |
|
| 4 |
%feature("docstring") ::Fl_Tabs |
| 5 |
""" |
| 6 |
The Fl_Tabs widget is the 'file card tabs' interface that allows you to |
| 7 |
put lots and lots of buttons and switches in a panel, as popularized by |
| 8 |
many toolkits. |
| 9 |
|
| 10 |
Clicking the tab makes a child visible() by calling show() on it, and |
| 11 |
all other children are made invisible by calling hide() on them. Usually |
| 12 |
the children are Fl_Group widgets containing several widgets themselves. |
| 13 |
|
| 14 |
Each child makes a card, and it's label() is printed on the card tab, |
| 15 |
including the label font and style. The selection color of that child |
| 16 |
is used to color the tab, while the color of the child determines the |
| 17 |
background color of the pane. |
| 18 |
|
| 19 |
The size of the tabs is controlled by the bounding box of the children |
| 20 |
(there should be some space between the children and the edge of the Fl_Tabs), |
| 21 |
and the tabs may be placed 'inverted' on the bottom, this is determined |
| 22 |
by which gap is larger. It is easiest to lay this out in fluid, using the |
| 23 |
fluid browser to select each child group and resize them until the tabs |
| 24 |
look the way you want them to. |
| 25 |
""" ; |
| 26 |
|
| 27 |
%{ |
| 28 |
#include "FL/Fl_Tabs.H" |
| 29 |
%} |
| 30 |
|
| 31 |
%include "macros.i" |
| 32 |
|
| 33 |
CHANGE_OWNERSHIP(Fl_Tabs) |
| 34 |
|
| 35 |
%include "FL/Fl_Tabs.H" |