Debian Codegraph @

swig/Fl_Button.i

raw
1 /* File : Fl_Button.i */
2 //%module Fl_Button
3
4 %feature("docstring") ::Fl_Button
5 """
6 Buttons generate callbacks when they are clicked by the user. You control
7 exactly when and how by changing the values for type() and when().
8
9 Buttons can also generate callbacks in response to FL_SHORTCUT events. The
10 button can either have an explicit shortcut() value or a letter shortcut
11 can be indicated in the label() with an '&' character before it. For the
12 label shortcut it does not matter if Alt is held down, but if you have an
13 input field in the same window, the user will have to hold down the Alt key
14 so that the input field does not eat the event first as an FL_KEYBOARD event.
15 """ ;
16
17 %{
18 #include "FL/Fl_Button.H"
19 %}
20
21 %include "macros.i"
22
23 // typemap to map output of Fl_Button.value from char to int
24 %typemap(out) char {
25 $result = PyInt_FromLong( (long)$1);
26 }
27
28 CHANGE_OWNERSHIP(Fl_Button)
29
30 %include "FL/Fl_Button.H"
31
32 // clear the typemap for char
33 %typemap(out) char;