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-2000. See the AUTHORS
22 * file for a list of people on the GTK+ Team.
26 * GTK+ DirectFB backend
27 * Copyright (C) 2001-2002 convergence integrated media GmbH
28 * Copyright (C) 2002 convergence GmbH
29 * Written by Denis Oliver Kropp <dok@convergence.de> and
30 * Sven Neumann <sven@convergence.de>
33 #ifndef __GDK_INPUT_DIRECTFB_H__
34 #define __GDK_INPUT_DIRECTFB_H__
36 extern GdkModifierType _gdk_directfb_modifiers;
37 extern int _gdk_directfb_mouse_x, _gdk_directfb_mouse_y;
39 typedef struct _GdkAxisInfo GdkAxisInfo;
41 /* information about a device axis */
44 /* reported x resolution */
47 /* reported x minimum/maximum values */
48 gint xmin_value, xmax_value;
50 /* calibrated resolution (for aspect ration) - only relative values
54 /* calibrated minimum/maximum values */
55 gint min_value, max_value;
58 #define GDK_INPUT_NUM_EVENTC 6
60 struct _GdkDeviceClass
62 GObjectClass parent_class;
65 struct _GdkInputWindow
70 /* Extension mode (GDK_EXTENSION_EVENTS_ALL/CURSOR) */
71 GdkExtensionMode mode;
73 /* position relative to root window */
77 /* rectangles relative to window of windows obscuring this one */
78 GdkRectangle *obscuring;
81 /* Is there a pointer grab for this window ? */
87 #define GDK_IS_CORE(d) (((GdkDevice *)(d)) == _gdk_core_pointer)
89 extern GList *_gdk_input_devices;
90 extern GList *_gdk_input_windows;
92 extern gint _gdk_input_ignore_core;
94 /* Function declarations */
96 /* The following functions are provided by each implementation
98 gint _gdk_input_window_none_event(GdkEvent *event,
100 void _gdk_input_configure_event (GdkEventConfigure *event,
102 void _gdk_input_enter_event (GdkEventCrossing *event,
104 gint _gdk_input_other_event (GdkEvent *event,
108 /* These should be in gdkinternals.h */
110 GdkInputWindow * gdk_input_window_find (GdkWindow *window);
112 void gdk_input_window_destroy (GdkWindow *window);
114 gint _gdk_input_enable_window (GdkWindow *window,
116 gint _gdk_input_disable_window (GdkWindow *window,
118 gint _gdk_input_grab_pointer (GdkWindow *window,
120 GdkEventMask event_mask,
121 GdkWindow *confine_to,
123 void _gdk_input_ungrab_pointer (guint32 time);
124 gboolean _gdk_device_get_history (GdkDevice *device,
128 GdkTimeCoord ***events,
131 gint gdk_input_common_init (gint include_core);
132 gint gdk_input_common_other_event (GdkEvent *event,
134 GdkInputWindow *input_window,
137 void _gdk_directfb_keyboard_init (void);
138 void _gdk_directfb_keyboard_exit (void);
140 void gdk_directfb_translate_key_event (DFBWindowEvent *dfb_event,
143 #endif /* __GDK_INPUT_DIRECTFB_H__ */