Debian Codegraph @

swig/Fl_Value_Input.i

raw
1 /* File : Fl_Value_Input.i */
2 //%module Fl_Value_Input
3
4 %feature("docstring") ::Fl_Value_Input
5 """
6 The Fl_Value_Input widget displays a numeric value. The user can click in
7 the text field and edit it - there is in fact a hidden Fl_Input widget with
8 type(FL_FLOAT_INPUT) or type(FL_INT_INPUT) in there - and when they hit
9 return or tab the value updates to what they typed and the callback is done.
10
11 If step() is non-zero, the user can also drag the mouse across the object
12 and thus slide the value. The left button moves one step() per pixel, the
13 middle by 10 * step(), and the right button by 100 * step(). It is therefore
14 impossible to select text by dragging across it, although clicking can still
15 move the insertion cursor.
16
17 If step() is non-zero and integral, then the range of numbers are limited
18 to integers instead of floating point values.
19 """ ;
20
21 %{
22 #include "FL/Fl_Value_Input.H"
23 %}
24
25 %include "macros.i"
26
27 CHANGE_OWNERSHIP(Fl_Value_Input)
28
29 %ignore Fl_Value_Input::input;
30
31 SET_FORMAT_STRING_IN_TYPEMAP(char*, format_string)
32 SET_FORMAT_STRING_OUT_TYPEMAP(int, format, format_string)
33
34 %include "FL/Fl_Value_Input.H"
35
36 CLEAR_FORMAT_STRING_OUT_TYPEMAP(int, format)