2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = gdk-Input.html
50 private import gdk
.gdktypes
;
52 private import lib
.gdk
;
57 * The functions in this section are used to establish
58 * callbacks when some condition becomes true for
59 * a file descriptor. They are currently just wrappers around
71 * gdk_input_add_full is deprecated and should not be used in newly-written code.
72 * Establish a callback when a condition becomes true on
79 * the callback function.
81 * callback data passed to function.
83 * callback function to call with data when the input
86 * a tag that can later be used as an argument to
89 public static int addFull(int source
, GdkInputCondition condition
, GdkInputFunction funct
, void* data
, GdkDestroyNotify destroy
)
91 // gint gdk_input_add_full (gint source, GdkInputCondition condition, GdkInputFunction function, gpointer data, GdkDestroyNotify destroy);
92 return gdk_input_add_full(source
, condition
, funct
, data
, destroy
);
100 * gdk_input_add is deprecated and should not be used in newly-written code.
101 * Establish a callback when a condition becomes true on
108 * the callback function.
110 * callback data passed to function.
112 * a tag that can later be used as an argument to
113 * gdk_input_remove().
115 public static int add(int source
, GdkInputCondition condition
, GdkInputFunction funct
, void* data
)
117 // gint gdk_input_add (gint source, GdkInputCondition condition, GdkInputFunction function, gpointer data);
118 return gdk_input_add(source
, condition
, funct
, data
);
123 * gdk_input_remove is deprecated and should not be used in newly-written code.
124 * Remove a callback added with gdk_input_add() or
125 * gdk_input_add_full().
127 * the tag returned when the callback was set up.
130 * The main loop in which input callbacks run.
132 * A newer and more flexible way of doing IO
135 public static void remove(int tag
)
137 // void gdk_input_remove (gint tag);
138 gdk_input_remove(tag
);