I've no idea here...
[gtkD.git] / src / gdk / Input.d
blob0bf2b7faea8338d2e5db020883fc054ea79a158e
1 /*
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
26 * outPack = gdk
27 * outFile = Input
28 * strct =
29 * realStrct=
30 * ctorStrct=
31 * clss = Input
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gdk_input_
40 * omit structs:
41 * omit prefixes:
42 * omit code:
43 * imports:
44 * structWrap:
45 * local aliases:
48 module gdk.Input;
50 private import gdk.gdktypes;
52 private import lib.gdk;
55 /**
56 * Description
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
60 * the IO Channel
61 * facility.
63 public class Input
66 /**
69 /**
70 * Warning
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
73 * a file descriptor.
74 * source:
75 * a file descriptor.
76 * condition:
77 * the condition.
78 * function:
79 * the callback function.
80 * data:
81 * callback data passed to function.
82 * destroy:
83 * callback function to call with data when the input
84 * handler is removed.
85 * Returns:
86 * a tag that can later be used as an argument to
87 * gdk_input_remove().
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);
98 /**
99 * Warning
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
102 * a file descriptor.
103 * source:
104 * a file descriptor.
105 * condition:
106 * the condition.
107 * function:
108 * the callback function.
109 * data:
110 * callback data passed to function.
111 * Returns:
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);
122 * Warning
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().
126 * tag:
127 * the tag returned when the callback was set up.
128 * See Also
129 * GLib Main Loop
130 * The main loop in which input callbacks run.
131 * IO Channels
132 * A newer and more flexible way of doing IO
133 * callbacks.
135 public static void remove(int tag)
137 // void gdk_input_remove (gint tag);
138 gdk_input_remove(tag);