forked from AuroraMiddleware/gtk
Detangle includes for device subclasses
This commit is contained in:
parent
e5090396bf
commit
b1aaa10b6a
@ -34,7 +34,7 @@ G_BEGIN_DECLS
|
|||||||
#define GDK_IS_DEVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_DEVICE))
|
#define GDK_IS_DEVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_DEVICE))
|
||||||
|
|
||||||
typedef struct _GdkDevice GdkDevice;
|
typedef struct _GdkDevice GdkDevice;
|
||||||
typedef struct _GdkDevicePrivate GdkDevicePrivate;
|
typedef struct _GdkDeviceClass GdkDeviceClass;
|
||||||
typedef struct _GdkTimeCoord GdkTimeCoord;
|
typedef struct _GdkTimeCoord GdkTimeCoord;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,8 +30,6 @@ G_BEGIN_DECLS
|
|||||||
#define GDK_IS_DEVICE_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GDK_TYPE_DEVICE))
|
#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))
|
#define GDK_DEVICE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_DEVICE, GdkDeviceClass))
|
||||||
|
|
||||||
typedef struct _GdkDeviceClass GdkDeviceClass;
|
|
||||||
|
|
||||||
typedef struct _GdkDeviceKey GdkDeviceKey;
|
typedef struct _GdkDeviceKey GdkDeviceKey;
|
||||||
|
|
||||||
struct _GdkDeviceKey
|
struct _GdkDeviceKey
|
||||||
|
@ -24,6 +24,7 @@ libgdk_x11_la_SOURCES = \
|
|||||||
gdkasync.h \
|
gdkasync.h \
|
||||||
gdkcursor-x11.c \
|
gdkcursor-x11.c \
|
||||||
gdkdevice-core-x11.c \
|
gdkdevice-core-x11.c \
|
||||||
|
gdkdeviceprivate-xi.h \
|
||||||
gdkdevicemanager-core-x11.c \
|
gdkdevicemanager-core-x11.c \
|
||||||
gdkdevicemanager-x11.c \
|
gdkdevicemanager-x11.c \
|
||||||
gdkdisplaymanager-x11.c \
|
gdkdisplaymanager-x11.c \
|
||||||
|
@ -20,12 +20,23 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "gdkx11device-core.h"
|
#include "gdkx11device-core.h"
|
||||||
|
#include "gdkdeviceprivate.h"
|
||||||
|
|
||||||
#include "gdkinternals.h"
|
#include "gdkinternals.h"
|
||||||
#include "gdkwindow.h"
|
#include "gdkwindow.h"
|
||||||
#include "gdkprivate-x11.h"
|
#include "gdkprivate-x11.h"
|
||||||
#include "gdkasync.h"
|
#include "gdkasync.h"
|
||||||
|
|
||||||
|
struct _GdkX11DeviceCore
|
||||||
|
{
|
||||||
|
GdkDevice parent_instance;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct _GdkX11DeviceCoreClass
|
||||||
|
{
|
||||||
|
GdkDeviceClass parent_class;
|
||||||
|
};
|
||||||
|
|
||||||
static gboolean gdk_x11_device_core_get_history (GdkDevice *device,
|
static gboolean gdk_x11_device_core_get_history (GdkDevice *device,
|
||||||
GdkWindow *window,
|
GdkWindow *window,
|
||||||
guint32 start,
|
guint32 start,
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "gdkx11device-xi.h"
|
#include "gdkx11device-xi.h"
|
||||||
|
#include "gdkdeviceprivate-xi.h"
|
||||||
|
|
||||||
#include "gdkwindow.h"
|
#include "gdkwindow.h"
|
||||||
#include "gdkintl.h"
|
#include "gdkintl.h"
|
||||||
#include "gdkdeviceprivate.h"
|
|
||||||
#include "gdkprivate-x11.h"
|
#include "gdkprivate-x11.h"
|
||||||
#include "gdkasync.h"
|
#include "gdkasync.h"
|
||||||
|
|
||||||
|
@ -20,12 +20,23 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "gdkx11device-xi2.h"
|
#include "gdkx11device-xi2.h"
|
||||||
|
#include "gdkdeviceprivate.h"
|
||||||
|
|
||||||
#include "gdkintl.h"
|
#include "gdkintl.h"
|
||||||
#include "gdkasync.h"
|
#include "gdkasync.h"
|
||||||
#include "gdkprivate-x11.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,
|
static void gdk_x11_device_xi2_get_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
|
@ -22,11 +22,12 @@
|
|||||||
#include "gdkx11devicemanager-core.h"
|
#include "gdkx11devicemanager-core.h"
|
||||||
#include "gdkx11device-core.h"
|
#include "gdkx11device-core.h"
|
||||||
|
|
||||||
#include "gdkkeysyms.h"
|
|
||||||
#include "gdkdevicemanagerprivate.h"
|
#include "gdkdevicemanagerprivate.h"
|
||||||
|
#include "gdkdeviceprivate.h"
|
||||||
#include "gdkdisplayprivate.h"
|
#include "gdkdisplayprivate.h"
|
||||||
#include "gdkeventtranslator.h"
|
#include "gdkeventtranslator.h"
|
||||||
#include "gdkprivate-x11.h"
|
#include "gdkprivate-x11.h"
|
||||||
|
#include "gdkkeysyms.h"
|
||||||
|
|
||||||
#ifdef HAVE_XKB
|
#ifdef HAVE_XKB
|
||||||
#include <X11/XKBlib.h>
|
#include <X11/XKBlib.h>
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "gdkx11devicemanager-xi.h"
|
#include "gdkx11devicemanager-xi.h"
|
||||||
#include "gdkx11device-xi.h"
|
#include "gdkdeviceprivate-xi.h"
|
||||||
|
|
||||||
|
#include "gdkdevicemanagerprivate.h"
|
||||||
#include "gdkeventtranslator.h"
|
#include "gdkeventtranslator.h"
|
||||||
#include "gdkintl.h"
|
#include "gdkintl.h"
|
||||||
#include "gdkprivate-x11.h"
|
#include "gdkprivate-x11.h"
|
||||||
|
58
gdk/x11/gdkdeviceprivate-xi.h
Normal file
58
gdk/x11/gdkdeviceprivate-xi.h
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
/* 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__ */
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef __GDK_X11_DEVICE_CORE_H__
|
#ifndef __GDK_X11_DEVICE_CORE_H__
|
||||||
#define __GDK_X11_DEVICE_CORE_H__
|
#define __GDK_X11_DEVICE_CORE_H__
|
||||||
|
|
||||||
#include "gdkdeviceprivate.h"
|
#include <gdk/gdk.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
@ -34,15 +34,6 @@ G_BEGIN_DECLS
|
|||||||
typedef struct _GdkX11DeviceCore GdkX11DeviceCore;
|
typedef struct _GdkX11DeviceCore GdkX11DeviceCore;
|
||||||
typedef struct _GdkX11DeviceCoreClass GdkX11DeviceCoreClass;
|
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;
|
GType gdk_x11_device_core_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef __GDK_X11_DEVICE_XI_H__
|
#ifndef __GDK_X11_DEVICE_XI_H__
|
||||||
#define __GDK_X11_DEVICE_XI_H__
|
#define __GDK_X11_DEVICE_XI_H__
|
||||||
|
|
||||||
#include "gdkdeviceprivate.h"
|
#include <gdk/gdk.h>
|
||||||
|
|
||||||
#include <X11/extensions/XInput.h>
|
#include <X11/extensions/XInput.h>
|
||||||
|
|
||||||
@ -36,34 +36,6 @@ G_BEGIN_DECLS
|
|||||||
typedef struct _GdkX11DeviceXI GdkX11DeviceXI;
|
typedef struct _GdkX11DeviceXI GdkX11DeviceXI;
|
||||||
typedef struct _GdkX11DeviceXIClass GdkX11DeviceXIClass;
|
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;
|
GType gdk_x11_device_xi_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef __GDK_X11_DEVICE_XI2_H__
|
#ifndef __GDK_X11_DEVICE_XI2_H__
|
||||||
#define __GDK_X11_DEVICE_XI2_H__
|
#define __GDK_X11_DEVICE_XI2_H__
|
||||||
|
|
||||||
#include "gdkdeviceprivate.h"
|
#include <gdk/gdk.h>
|
||||||
|
|
||||||
#include <X11/extensions/XInput2.h>
|
#include <X11/extensions/XInput2.h>
|
||||||
|
|
||||||
@ -36,19 +36,6 @@ G_BEGIN_DECLS
|
|||||||
typedef struct _GdkX11DeviceXI2 GdkX11DeviceXI2;
|
typedef struct _GdkX11DeviceXI2 GdkX11DeviceXI2;
|
||||||
typedef struct _GdkX11DeviceXI2Class GdkX11DeviceXI2Class;
|
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;
|
GType gdk_x11_device_xi2_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
Loading…
Reference in New Issue
Block a user