1 <!-- ##### SECTION ./tmpl/gdkregion.sgml:See_Also ##### -->
7 <!-- ##### FUNCTION gdk_regions_xor ##### -->
9 Returns the difference between the union and the intersection of two regions.
10 This is a region containing the pixels that are in one of the source regions,
11 but which are not in both.
14 @source1: a #GdkRegion.
15 @source2: a #GdkRegion.
16 @Returns: the difference between the union and the intersection of @source1
19 <!-- ##### FUNCTION gdk_input_motion_events ##### -->
21 Retrieves the motion history for a given device/window pair.
24 @window: a #GdkWindow.
25 @deviceid: the device for which to retrieve motion history.
26 @start: the start time.
28 @nevents_return: location to store the number of events returned.
29 @Returns: a newly allocated array containing all the events
30 from @start to @stop. This array should be freed
31 with g_free() when you are finished using it.
33 <!-- ##### SECTION ./tmpl/gdkkeys.sgml:See_Also ##### -->
39 <!-- ##### FUNCTION gdk_keymap_translate_keyboard_state ##### -->
54 <!-- ##### FUNCTION gdk_keymap_get_entries_for_keyval ##### -->
65 <!-- ##### SECTION ./tmpl/gdkregion.sgml:Long_Description ##### -->
71 <!-- ##### SECTION ./tmpl/gdkkeys.sgml:Long_Description ##### -->
77 <!-- ##### SECTION ./tmpl/input_methods.sgml.sgml:Short_Description ##### -->
81 <!-- ##### STRUCT GdkDeviceInfo ##### -->
83 The #GdkDeviceInfo structure contains information about a
84 device. It has the following fields:
87 @deviceid: a unique integer ID for this device.
88 @name: the human-readable name for the device.
89 @source: the type of device.
90 @mode: a value indicating whether the device is enabled and
91 how the device coordinates map to the screen.
92 @has_cursor: if %TRUE, a cursor will be displayed indicating
93 the current on-screen location to the user. Otherwise,
94 the application is responsible for drawing a cursor
96 @num_axes: the number of axes for this device.
97 @axes: a pointer to an array of GdkAxisUse values which
98 give the mapping of axes onto the possible valuators
100 @num_keys: the number of macro buttons.
101 @keys: a pointer to an array of #GdkDeviceKey structures
102 which describe what key press events are generated
103 for each macro button.
105 <!-- ##### SECTION ./tmpl/input_methods.sgml.sgml:Title ##### -->
109 <!-- ##### FUNCTION gdk_regions_union ##### -->
111 Returns the union of two regions.
112 This is all pixels in either of @source1 or @source2.
115 @source1: a #GdkRegion.
116 @source2: a #GdkRegion.
117 @Returns: the union of @source1 and @source2.
119 <!-- ##### FUNCTION gdk_drawable_get_visible_region ##### -->
127 <!-- ##### FUNCTION gdk_colormap_query_color ##### -->
136 <!-- ##### FUNCTION gdk_event_get_state ##### -->
145 <!-- ##### SECTION ./tmpl/gdkregion.sgml:Short_Description ##### -->
149 <!-- ##### FUNCTION gdk_window_get_decorations ##### -->
158 <!-- ##### FUNCTION gdk_keymap_get_entries_for_keycode ##### -->
170 <!-- ##### FUNCTION gdk_drawable_get_clip_region ##### -->
178 <!-- ##### FUNCTION gdk_input_set_key ##### -->
180 Sets the key event generated when a macro button is pressed.
183 @deviceid: the device to configure.
184 @index: the index of the macro button.
185 @keyval: the key value for the #GdkKeypressEvent to generate.
186 (a value of 0 means no event will be generated.)
187 @modifiers: the modifier field for the generated
190 <!-- ##### FUNCTION gdk_input_list_devices ##### -->
192 Lists all available input devices, along with their
193 configuration information.
196 @Returns: A #GList of #GdkDeviceInfo structures. This list
197 is internal data of GTK+ and should not be modified
200 <!-- ##### STRUCT GdkKeymap ##### -->
207 <!-- ##### SECTION ./tmpl/input_methods.sgml.sgml:See_Also ##### -->
213 <!-- ##### ENUM GdkPixbufAlphaMode ##### -->
218 @GDK_PIXBUF_ALPHA_BILEVEL:
219 @GDK_PIXBUF_ALPHA_FULL:
221 <!-- ##### FUNCTION gdk_regions_subtract ##### -->
223 Subtracts one region from another.
224 The result is a region containing all the pixels which are in @source1, but
225 which are not in @source2.
228 @source1: a #GdkRegion.
229 @source2: a #GdkRegion to subtract from @source1.
230 @Returns: @source1 - @source2.
232 <!-- ##### FUNCTION gdk_input_window_get_pointer ##### -->
234 Returns information about the current position of the pointer
235 within a window, including extended device information.
236 Any of the return parameters may be %NULL, in which case,
237 they will be ignored.
240 @window: a #GdkWindow.
241 @deviceid: a device ID.
242 @x: location to store current x postion.
243 @y: location to store current y postion.
244 @pressure: location to store current pressure.
245 @xtilt: location to store current tilt in the x direction.
246 @ytilt: location to store current tilt in the y direction.
247 @mask: location to store the current modifier state.
249 <!-- ##### SECTION ./tmpl/gdkkeys.sgml:Short_Description ##### -->
253 <!-- ##### MACRO GDK_CORE_POINTER ##### -->
255 This macro contains an integer value representing
256 the device ID for the core pointer device.
260 <!-- ##### FUNCTION gdk_input_set_axes ##### -->
262 Sets the mapping of the axes (valuators) of a device
263 onto the predefined valuator types that GTK+ understands.
266 @deviceid: the device to configure.
267 @axes: an array of GdkAxisUse. This length of this array
268 must match the number of axes for the device.
270 <!-- ##### STRUCT GdkSpan ##### -->
279 <!-- ##### STRUCT GdkKeyInfo ##### -->
288 <!-- ##### FUNCTION gdk_input_set_source ##### -->
290 Sets the source type for a device.
293 @deviceid: the device to configure
294 @source: the new source type.
296 <!-- ##### FUNCTION gdk_region_spans_intersect_foreach ##### -->
298 Intersects a set of spans with a region and call a user specified
299 function for each resulting spanline. This function is a lot more effective
300 if the spans are sorted.
303 @region: The region to intersect against.
304 @spans: Array of spans to intersect.
305 @n_spans: Number of spans.
306 @sorted: True if the spans are sorted in increasing y order.
307 @function: The function to call for each intersected spanline.
308 @data: Opaque user data passed to function.
310 <!-- ##### FUNCTION gdk_keymap_get_default ##### -->
317 <!-- ##### SECTION ./tmpl/gdkregion.sgml:Title ##### -->
318 Points, Rectangles and Regions
321 <!-- ##### FUNCTION gdk_regions_intersect ##### -->
323 Returns the intersection of two regions.
326 @source1: a #GdkRegion.
327 @source2: a #GdkRegion.
328 @Returns: the intersection of @source1 and @source2.
330 <!-- ##### FUNCTION gdk_keymap_lookup_key ##### -->
339 <!-- ##### USER_FUNCTION GdkSpanFunc ##### -->
344 @span: The intersected part of the span.
345 @data: Opaque data passed by user.
347 <!-- ##### STRUCT GdkKeymapClass ##### -->
353 <!-- ##### SECTION ./tmpl/gdkkeys.sgml:Title ##### -->
357 <!-- ##### STRUCT GdkKeymapKey ##### -->
366 <!-- ##### FUNCTION gdk_input_set_mode ##### -->
368 Enables or disables a device, and determines how the
369 device maps onto the screen.
372 @deviceid: the device to configure.
374 @Returns: %TRUE if the device supports the given mode, otherwise
375 %FALSE and the device's mode is unchanged.
377 <!-- ##### SECTION ./tmpl/input_methods.sgml.sgml:Long_Description ##### -->