1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library 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 GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
22 * file for a list of people on the GTK+ Team. See the ChangeLog
23 * files for a list of changes. These files are distributed with
24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
27 #ifndef __GDK_INPUTPRIVATE_H__
28 #define __GDK_INPUTPRIVATE_H__
30 typedef struct _GdkAxisInfo GdkAxisInfo;
31 typedef struct _GdkInputVTable GdkInputVTable;
32 typedef struct _GdkDevicePrivate GdkDevicePrivate;
33 typedef struct _GdkInputWindow GdkInputWindow;
35 struct _GdkInputVTable {
36 gint (*set_mode) (guint32 deviceid, GdkInputMode mode);
37 void (*set_axes) (guint32 deviceid, GdkAxisUse *axes);
38 void (*set_key) (guint32 deviceid,
41 GdkModifierType modifiers);
43 GdkTimeCoord* (*motion_events) (GdkWindow *window,
47 gint *nevents_return);
48 void (*get_pointer) (GdkWindow *window,
55 GdkModifierType *mask);
56 gint (*grab_pointer) (GdkWindow * window,
58 GdkEventMask event_mask,
59 GdkWindow * confine_to,
61 void (*ungrab_pointer) (guint32 time);
63 void (*configure_event) (GdkEventConfigure *event, GdkWindow *window);
64 void (*enter_event) (GdkEventCrossing *event, GdkWindow *window);
65 gint (*other_event) (GdkEvent *event, MSG *xevent);
66 gint (*enable_window) (GdkWindow *window, GdkDevicePrivate *gdkdev);
67 gint (*disable_window) (GdkWindow *window, GdkDevicePrivate *gdkdev);
70 /* information about a device axis */
73 /* reported x resolution */
76 /* reported x minimum/maximum values */
77 gint xmin_value, xmax_value;
79 /* calibrated resolution (for aspect ration) - only relative values
83 /* calibrated minimum/maximum values */
84 gint min_value, max_value;
87 struct _GdkInputWindow
92 /* Extension mode (GDK_EXTENSION_EVENTS_ALL/CURSOR) */
93 GdkExtensionMode mode;
95 /* position relative to root window */
99 /* rectangles relative to window of windows obscuring this one */
100 GdkRectangle *obscuring;
103 /* Is there a pointer grab for this window ? */
109 extern GdkInputVTable gdk_input_vtable;
110 extern gint gdk_input_ignore_core;
111 extern gint gdk_input_ignore_wintab;
113 /* Function declarations */
115 void gdk_input_window_destroy (GdkWindow *window);
117 #endif /* __GDK_INPUTPRIVATE_H__ */