| 1 |
/* File : Fl_Menu_Bar.i */ |
| 2 |
//%module Fl_Menu_Bar |
| 3 |
|
| 4 |
%feature("docstring") ::Fl_Menu_Bar |
| 5 |
""" |
| 6 |
This widget provides a standard menubar interface. Usually you will put |
| 7 |
this widget along the top edge of your window. The height of the widget |
| 8 |
should be 30 for the menu titles to draw correctly with the default font. |
| 9 |
|
| 10 |
The items on the bar and the menus they bring up are defined by a single |
| 11 |
Fl_Menu_Item array. Because a Fl_Menu_Item array defines a hierarchy, the |
| 12 |
top level menu defines the items in the menubar, while the submenus define |
| 13 |
the pull-down menus. Sub-sub menus and lower pop up to the right of the |
| 14 |
submenus. |
| 15 |
|
| 16 |
If there is an item in the top menu that is not a title of a submenu, then |
| 17 |
it acts like a 'button' in the menubar. Clicking on it will pick it. |
| 18 |
|
| 19 |
When the user picks an item off the menu, the item's callback is done with |
| 20 |
the menubar as the Fl_Widget* argument. If the item does not have a callback |
| 21 |
the menubar's callback is done instead. |
| 22 |
|
| 23 |
Submenus will also pop up in response to shortcuts indicated by putting |
| 24 |
a '&' character in the name field of the menu item. If you put a '&' |
| 25 |
character in a top-level 'button' then the shortcut picks it. The '&' |
| 26 |
character in submenus is ignored until the menu is popped up. |
| 27 |
|
| 28 |
Typing the shortcut() of any of the menu items will cause callbacks |
| 29 |
exactly the same as when you pick the item with the mouse. |
| 30 |
""" ; |
| 31 |
|
| 32 |
%{ |
| 33 |
#include "FL/Fl_Menu_Bar.H" |
| 34 |
%} |
| 35 |
|
| 36 |
%include "macros.i" |
| 37 |
|
| 38 |
CHANGE_OWNERSHIP(Fl_Menu_Bar) |
| 39 |
|
| 40 |
%include "FL/Fl_Menu_Bar.H" |