#define GDK_IS_DEVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_DEVICE))
typedef struct _GdkDevice GdkDevice;
-typedef struct _GdkDevicePrivate GdkDevicePrivate;
+typedef struct _GdkDeviceClass GdkDeviceClass;
typedef struct _GdkTimeCoord GdkTimeCoord;
/**
#define GDK_IS_DEVICE_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GDK_TYPE_DEVICE))
#define GDK_DEVICE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_DEVICE, GdkDeviceClass))
-typedef struct _GdkDeviceClass GdkDeviceClass;
-
typedef struct _GdkDeviceKey GdkDeviceKey;
struct _GdkDeviceKey
gdkasync.h \
gdkcursor-x11.c \
gdkdevice-core-x11.c \
+ gdkdeviceprivate-xi.h \
gdkdevicemanager-core-x11.c \
gdkdevicemanager-x11.c \
gdkdisplaymanager-x11.c \
#include "config.h"
#include "gdkx11device-core.h"
+#include "gdkdeviceprivate.h"
#include "gdkinternals.h"
#include "gdkwindow.h"
#include "gdkprivate-x11.h"
#include "gdkasync.h"
+struct _GdkX11DeviceCore
+{
+ GdkDevice parent_instance;
+};
+
+struct _GdkX11DeviceCoreClass
+{
+ GdkDeviceClass parent_class;
+};
+
static gboolean gdk_x11_device_core_get_history (GdkDevice *device,
GdkWindow *window,
guint32 start,
#include "config.h"
#include "gdkx11device-xi.h"
+#include "gdkdeviceprivate-xi.h"
#include "gdkwindow.h"
#include "gdkintl.h"
-#include "gdkdeviceprivate.h"
#include "gdkprivate-x11.h"
#include "gdkasync.h"
#include "config.h"
#include "gdkx11device-xi2.h"
+#include "gdkdeviceprivate.h"
#include "gdkintl.h"
#include "gdkasync.h"
#include "gdkprivate-x11.h"
-#include <X11/extensions/XInput2.h>
+struct _GdkX11DeviceXI2
+{
+ GdkDevice parent_instance;
+
+ gint device_id;
+};
+
+struct _GdkX11DeviceXI2Class
+{
+ GdkDeviceClass parent_class;
+};
static void gdk_x11_device_xi2_get_property (GObject *object,
guint prop_id,
#include "gdkx11devicemanager-core.h"
#include "gdkx11device-core.h"
-#include "gdkkeysyms.h"
#include "gdkdevicemanagerprivate.h"
+#include "gdkdeviceprivate.h"
#include "gdkdisplayprivate.h"
#include "gdkeventtranslator.h"
#include "gdkprivate-x11.h"
+#include "gdkkeysyms.h"
#ifdef HAVE_XKB
#include <X11/XKBlib.h>
#include "config.h"
#include "gdkx11devicemanager-xi.h"
-#include "gdkx11device-xi.h"
+#include "gdkdeviceprivate-xi.h"
+#include "gdkdevicemanagerprivate.h"
#include "gdkeventtranslator.h"
#include "gdkintl.h"
#include "gdkprivate-x11.h"
--- /dev/null
+/* GDK - The GIMP Drawing Kit
+ * Copyright (C) 2009 Carlos Garnacho <carlosg@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GDK_DEVICE_XI_PRIVATE_H__
+#define __GDK_DEVICE_XI_PRIVATE_H__
+
+#include "gdkx11device-xi.h"
+#include "gdkdeviceprivate.h"
+
+G_BEGIN_DECLS
+
+struct _GdkX11DeviceXI
+{
+ GdkDevice parent_instance;
+
+ /*< private >*/
+ guint32 device_id;
+ XDevice *xdevice;
+
+ gint button_press_type;
+ gint button_release_type;
+ gint key_press_type;
+ gint key_release_type;
+ gint motion_notify_type;
+ gint proximity_in_type;
+ gint proximity_out_type;
+ gint state_notify_type;
+
+ /* minimum key code for device */
+ gint min_keycode;
+ gint *axis_data;
+ guint in_proximity : 1;
+};
+
+struct _GdkX11DeviceXIClass
+{
+ GdkDeviceClass parent_class;
+};
+
+G_END_DECLS
+
+#endif /* __GDK_DEVICE_XI_PRIVATE_H__ */
#ifndef __GDK_X11_DEVICE_CORE_H__
#define __GDK_X11_DEVICE_CORE_H__
-#include "gdkdeviceprivate.h"
+#include <gdk/gdk.h>
G_BEGIN_DECLS
typedef struct _GdkX11DeviceCore GdkX11DeviceCore;
typedef struct _GdkX11DeviceCoreClass GdkX11DeviceCoreClass;
-struct _GdkX11DeviceCore
-{
- GdkDevice parent_instance;
-};
-
-struct _GdkX11DeviceCoreClass
-{
- GdkDeviceClass parent_class;
-};
GType gdk_x11_device_core_get_type (void) G_GNUC_CONST;
#ifndef __GDK_X11_DEVICE_XI_H__
#define __GDK_X11_DEVICE_XI_H__
-#include "gdkdeviceprivate.h"
+#include <gdk/gdk.h>
#include <X11/extensions/XInput.h>
typedef struct _GdkX11DeviceXI GdkX11DeviceXI;
typedef struct _GdkX11DeviceXIClass GdkX11DeviceXIClass;
-struct _GdkX11DeviceXI
-{
- GdkDevice parent_instance;
-
- /*< private >*/
- guint32 device_id;
- XDevice *xdevice;
-
- gint button_press_type;
- gint button_release_type;
- gint key_press_type;
- gint key_release_type;
- gint motion_notify_type;
- gint proximity_in_type;
- gint proximity_out_type;
- gint state_notify_type;
-
- /* minimum key code for device */
- gint min_keycode;
- gint *axis_data;
-
- guint in_proximity : 1;
-};
-
-struct _GdkX11DeviceXIClass
-{
- GdkDeviceClass parent_class;
-};
GType gdk_x11_device_xi_get_type (void) G_GNUC_CONST;
#ifndef __GDK_X11_DEVICE_XI2_H__
#define __GDK_X11_DEVICE_XI2_H__
-#include "gdkdeviceprivate.h"
+#include <gdk/gdk.h>
#include <X11/extensions/XInput2.h>
typedef struct _GdkX11DeviceXI2 GdkX11DeviceXI2;
typedef struct _GdkX11DeviceXI2Class GdkX11DeviceXI2Class;
-struct _GdkX11DeviceXI2
-{
- GdkDevice parent_instance;
-
- /*< private >*/
- gint device_id;
-};
-
-struct _GdkX11DeviceXI2Class
-{
- GdkDeviceClass parent_class;
-};
-
GType gdk_x11_device_xi2_get_type (void) G_GNUC_CONST;
G_END_DECLS