mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
win32 virtual device: reorganize code to avoid prototypes
This commit is contained in:
parent
36c3f21989
commit
b3eaaa5a2c
@ -27,69 +27,8 @@
|
|||||||
#include "gdkdevice-win32.h"
|
#include "gdkdevice-win32.h"
|
||||||
#include "gdkwin32.h"
|
#include "gdkwin32.h"
|
||||||
|
|
||||||
static gboolean gdk_device_virtual_get_history (GdkDevice *device,
|
|
||||||
GdkWindow *window,
|
|
||||||
guint32 start,
|
|
||||||
guint32 stop,
|
|
||||||
GdkTimeCoord ***events,
|
|
||||||
gint *n_events);
|
|
||||||
static void gdk_device_virtual_get_state (GdkDevice *device,
|
|
||||||
GdkWindow *window,
|
|
||||||
gdouble *axes,
|
|
||||||
GdkModifierType *mask);
|
|
||||||
static void gdk_device_virtual_set_window_cursor (GdkDevice *device,
|
|
||||||
GdkWindow *window,
|
|
||||||
GdkCursor *cursor);
|
|
||||||
static void gdk_device_virtual_warp (GdkDevice *device,
|
|
||||||
GdkScreen *screen,
|
|
||||||
gdouble x,
|
|
||||||
gdouble y);
|
|
||||||
static void gdk_device_virtual_query_state (GdkDevice *device,
|
|
||||||
GdkWindow *window,
|
|
||||||
GdkWindow **root_window,
|
|
||||||
GdkWindow **child_window,
|
|
||||||
gdouble *root_x,
|
|
||||||
gdouble *root_y,
|
|
||||||
gdouble *win_x,
|
|
||||||
gdouble *win_y,
|
|
||||||
GdkModifierType *mask);
|
|
||||||
static GdkGrabStatus gdk_device_virtual_grab (GdkDevice *device,
|
|
||||||
GdkWindow *window,
|
|
||||||
gboolean owner_events,
|
|
||||||
GdkEventMask event_mask,
|
|
||||||
GdkWindow *confine_to,
|
|
||||||
GdkCursor *cursor,
|
|
||||||
guint32 time_);
|
|
||||||
static void gdk_device_virtual_ungrab (GdkDevice *device,
|
|
||||||
guint32 time_);
|
|
||||||
static void gdk_device_virtual_select_window_events (GdkDevice *device,
|
|
||||||
GdkWindow *window,
|
|
||||||
GdkEventMask event_mask);
|
|
||||||
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (GdkDeviceVirtual, gdk_device_virtual, GDK_TYPE_DEVICE)
|
G_DEFINE_TYPE (GdkDeviceVirtual, gdk_device_virtual, GDK_TYPE_DEVICE)
|
||||||
|
|
||||||
static void
|
|
||||||
gdk_device_virtual_class_init (GdkDeviceVirtualClass *klass)
|
|
||||||
{
|
|
||||||
GdkDeviceClass *device_class = GDK_DEVICE_CLASS (klass);
|
|
||||||
|
|
||||||
device_class->get_history = gdk_device_virtual_get_history;
|
|
||||||
device_class->get_state = gdk_device_virtual_get_state;
|
|
||||||
device_class->set_window_cursor = gdk_device_virtual_set_window_cursor;
|
|
||||||
device_class->warp = gdk_device_virtual_warp;
|
|
||||||
device_class->query_state = gdk_device_virtual_query_state;
|
|
||||||
device_class->grab = gdk_device_virtual_grab;
|
|
||||||
device_class->ungrab = gdk_device_virtual_ungrab;
|
|
||||||
device_class->window_at_position = _gdk_device_win32_window_at_position;
|
|
||||||
device_class->select_window_events = gdk_device_virtual_select_window_events;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gdk_device_virtual_init (GdkDeviceVirtual *device_virtual)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_gdk_device_virtual_set_active (GdkDevice *device,
|
_gdk_device_virtual_set_active (GdkDevice *device,
|
||||||
GdkDevice *new_active)
|
GdkDevice *new_active)
|
||||||
@ -313,3 +252,24 @@ gdk_device_virtual_select_window_events (GdkDevice *device,
|
|||||||
GdkEventMask event_mask)
|
GdkEventMask event_mask)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gdk_device_virtual_class_init (GdkDeviceVirtualClass *klass)
|
||||||
|
{
|
||||||
|
GdkDeviceClass *device_class = GDK_DEVICE_CLASS (klass);
|
||||||
|
|
||||||
|
device_class->get_history = gdk_device_virtual_get_history;
|
||||||
|
device_class->get_state = gdk_device_virtual_get_state;
|
||||||
|
device_class->set_window_cursor = gdk_device_virtual_set_window_cursor;
|
||||||
|
device_class->warp = gdk_device_virtual_warp;
|
||||||
|
device_class->query_state = gdk_device_virtual_query_state;
|
||||||
|
device_class->grab = gdk_device_virtual_grab;
|
||||||
|
device_class->ungrab = gdk_device_virtual_ungrab;
|
||||||
|
device_class->window_at_position = _gdk_device_win32_window_at_position;
|
||||||
|
device_class->select_window_events = gdk_device_virtual_select_window_events;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gdk_device_virtual_init (GdkDeviceVirtual *device_virtual)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user