| 1 |
/* File : Fl_Menu_Button.i */ |
| 2 |
//%module Fl_Menu_Button |
| 3 |
|
| 4 |
%feature("docstring") ::Fl_Menu_Button |
| 5 |
""" |
| 6 |
This is a button that when pushed pops up a menu (or hierarchy of menus) |
| 7 |
defined by an array of Fl_Menu_Item objects. |
| 8 |
|
| 9 |
Fl_Menu_Button widget. |
| 10 |
|
| 11 |
Normally any mouse button will pop up a menu and it is lined up below the |
| 12 |
button as shown in the picture. However an Fl_Menu_Button may also control |
| 13 |
a pop-up menu. This is done by setting the type() , see below. |
| 14 |
|
| 15 |
The menu will also pop up in response to shortcuts indicated by putting |
| 16 |
a '&' character in the label(). |
| 17 |
|
| 18 |
Typing the shortcut() of any of the menu items will cause callbacks exactly |
| 19 |
the same as when you pick the item with the mouse. The '&' character in menu |
| 20 |
item names are only looked at when the menu is popped up, however. |
| 21 |
|
| 22 |
When the user picks an item off the menu, the item's callback is done with |
| 23 |
the menu_button as the Fl_Widget* argument. If the item does not have a |
| 24 |
callback the menu_button's callback is done instead. |
| 25 |
""" ; |
| 26 |
|
| 27 |
%{ |
| 28 |
#include "FL/Fl_Menu_Button.H" |
| 29 |
%} |
| 30 |
|
| 31 |
%include "macros.i" |
| 32 |
|
| 33 |
CHANGE_OWNERSHIP(Fl_Menu_Button) |
| 34 |
|
| 35 |
%include "FL/Fl_Menu_Button.H" |