#include "config.h"#include <stdlib.h>#include <stdio.h>#include <math.h>#include "gdk.h"#include "gdkinput.h"#include "gdkprivate.h"#include "gdkwin32.h"#include "gdkinputprivate.h"Go to the source code of this file.
| #define G_PI 3.14159265358979323846 |
Definition at line 82 of file gdkinput-win32.c.
| #define TWOPI (2.*G_PI) |
Definition at line 97 of file gdkinput-win32.c.
Referenced by UpdatePosition(), and x3d_exec_command().
| #define USE_SYSCONTEXT 1 |
Definition at line 89 of file gdkinput-win32.c.
| static gint gdk_input_disable_window | ( | GdkWindow * | window, | |
| GdkDevicePrivate * | gdkdev | |||
| ) | [static] |
Definition at line 1414 of file gdkinput-win32.c.
References _GdkInputVTable::disable_window, gdk_input_vtable, and TRUE.
Referenced by gdk_input_set_extension_events().
| static gint gdk_input_enable_window | ( | GdkWindow * | window, | |
| GdkDevicePrivate * | gdkdev | |||
| ) | [static] |
Definition at line 1405 of file gdkinput-win32.c.
References _GdkInputVTable::enable_window, gdk_input_vtable, and TRUE.
Referenced by gdk_input_set_extension_events().
| void gdk_input_exit | ( | void | ) |
Definition at line 1529 of file gdkinput-win32.c.
References _GdkDeviceInfo::axes, _GdkDevicePrivate::axes, _GdkDeviceInfo::deviceid, g_free(), GDK_CORE_POINTER, gdk_input_devices, GDK_MODE_DISABLED, if(), _GdkDevicePrivate::info, _GdkDeviceInfo::keys, _GdkDevicePrivate::last_axis_data, and _GdkDeviceInfo::name.
| static GdkDevicePrivate * gdk_input_find_device | ( | guint32 | deviceid | ) | [static] |
Definition at line 1595 of file gdkinput-win32.c.
References _GdkDeviceInfo::deviceid, gdk_input_devices, _GdkDevicePrivate::info, and NULL.
Referenced by gdk_input_set_axes(), and gdk_input_set_source().
| void gdk_input_init | ( | void | ) |
Definition at line 336 of file gdkinput-win32.c.
References active, _GdkDeviceInfo::axes, _GdkDevicePrivate::axes, axis, _GdkDevicePrivate::axis_for_use, _GdkDeviceInfo::deviceid, _GdkWindowAttr::event_mask, FALSE, for(), g_list_append(), g_new, g_print(), g_strconcat(), g_warning(), GDK_ALL_EVENTS_MASK, GDK_AXIS_LAST, GDK_AXIS_PRESSURE, GDK_AXIS_X, GDK_AXIS_XTILT, GDK_AXIS_Y, GDK_AXIS_YTILT, GDK_DRAWABLE_XID, gdk_input_devices, gdk_input_ignore_wintab, GDK_INPUT_OUTPUT, GDK_MODE_SCREEN, GDK_NOTE, GDK_SOURCE_PEN, GDK_WA_X, GDK_WA_Y, gdk_window_new(), gdk_window_ref, GDK_WINDOW_TOPLEVEL, _GdkDeviceInfo::has_cursor, _GdkWindowAttr::height, i, if(), _GdkDevicePrivate::info, j, k, _GdkDevicePrivate::last_axis_data, _GdkAxisInfo::max_value, _GdkAxisInfo::min_value, _GdkDeviceInfo::mode, _GdkDeviceInfo::name, NULL, _GdkDeviceInfo::num_axes, _GdkAxisInfo::resolution, _GdkDeviceInfo::source, TRUE, _GdkWindowAttr::wclass, _GdkWindowAttr::width, _GdkWindowAttr::window_type, wintab_contexts, wintab_window, _GdkWindowAttr::x, _GdkAxisInfo::xmax_value, _GdkAxisInfo::xmin_value, _GdkAxisInfo::xresolution, and _GdkWindowAttr::y.
| GList* gdk_input_list_devices | ( | void | ) |
| GdkTimeCoord* gdk_input_motion_events | ( | GdkWindow * | window, | |
| guint32 | deviceid, | |||
| guint32 | start, | |||
| guint32 | stop, | |||
| gint * | nevents_return | |||
| ) |
Definition at line 1391 of file gdkinput-win32.c.
References g_return_val_if_fail, GDK_DRAWABLE_DESTROYED, and NULL.
| void gdk_input_set_axes | ( | guint32 | deviceid, | |
| GdkAxisUse * | axes | |||
| ) |
Definition at line 670 of file gdkinput-win32.c.
References _GdkDeviceInfo::axes, _GdkDevicePrivate::axis_for_use, g_return_if_fail, GDK_AXIS_IGNORE, GDK_AXIS_LAST, GDK_CORE_POINTER, gdk_input_find_device(), i, _GdkDevicePrivate::info, NULL, and _GdkDeviceInfo::num_axes.
| void gdk_input_set_extension_events | ( | GdkWindow * | window, | |
| gint | mask, | |||
| GdkExtensionMode | mode | |||
| ) |
Definition at line 1464 of file gdkinput-win32.c.
References _GdkDeviceInfo::deviceid, _GdkWindowPrivate::extension_events, FALSE, g_free(), g_list_append(), g_list_remove(), g_new, g_return_if_fail, GDK_CORE_POINTER, GDK_DRAWABLE_DESTROYED, GDK_ENTER_NOTIFY_MASK, GDK_EXTENSION_EVENTS_ALL, GDK_EXTENSION_EVENTS_NONE, gdk_input_devices, gdk_input_disable_window(), gdk_input_enable_window(), gdk_input_window_find(), gdk_input_windows, GDK_MODE_DISABLED, gdk_window_get_events(), gdk_window_set_events(), _GdkInputWindow::grabbed, _GdkDeviceInfo::has_cursor, if(), _GdkDevicePrivate::info, _GdkDeviceInfo::mode, _GdkInputWindow::mode, NULL, and _GdkInputWindow::window.
| void gdk_input_set_key | ( | guint32 | deviceid, | |
| guint | index, | |||
| guint | keyval, | |||
| GdkModifierType | modifiers | |||
| ) |
Definition at line 1383 of file gdkinput-win32.c.
References GDK_CORE_POINTER, gdk_input_vtable, and _GdkInputVTable::set_key.
| gint gdk_input_set_mode | ( | guint32 | deviceid, | |
| GdkInputMode | mode | |||
| ) |
Definition at line 659 of file gdkinput-win32.c.
References FALSE, GDK_CORE_POINTER, gdk_input_vtable, and _GdkInputVTable::set_mode.
| void gdk_input_set_source | ( | guint32 | deviceid, | |
| GdkInputSource | source | |||
| ) |
Definition at line 1375 of file gdkinput-win32.c.
References g_return_if_fail, gdk_input_find_device(), _GdkDevicePrivate::info, NULL, and _GdkDeviceInfo::source.
| void gdk_input_window_destroy | ( | GdkWindow * | window | ) |
Definition at line 1518 of file gdkinput-win32.c.
References g_free(), g_list_remove(), g_return_if_fail, gdk_input_window_find(), gdk_input_windows, and NULL.
Referenced by gdk_window_internal_destroy().
| static GdkInputWindow* gdk_input_window_find | ( | GdkWindow * | window | ) | [static] |
Definition at line 1423 of file gdkinput-win32.c.
References gdk_input_windows, and NULL.
Referenced by gdk_input_set_extension_events(), and gdk_input_window_destroy().
| void gdk_input_window_get_pointer | ( | GdkWindow * | window, | |
| guint32 | deviceid, | |||
| gdouble * | x, | |||
| gdouble * | y, | |||
| gdouble * | pressure, | |||
| gdouble * | xtilt, | |||
| gdouble * | ytilt, | |||
| GdkModifierType * | mask | |||
| ) |
Definition at line 1610 of file gdkinput-win32.c.
References gdk_input_vtable, and _GdkInputVTable::get_pointer.
GdkAxisUse gdk_input_core_axes[] = { GDK_AXIS_X, GDK_AXIS_Y } [static] |
Definition at line 163 of file gdkinput-win32.c.
GdkDeviceInfo gdk_input_core_info [static] |
Initial value:
{
GDK_CORE_POINTER,
"Core Pointer",
GDK_SOURCE_MOUSE,
GDK_MODE_SCREEN,
TRUE,
2,
gdk_input_core_axes
}
Definition at line 165 of file gdkinput-win32.c.
GList* gdk_input_devices [static] |
Definition at line 152 of file gdkinput-win32.c.
Referenced by gdk_input_exit(), gdk_input_find_device(), gdk_input_init(), gdk_input_list_devices(), and gdk_input_set_extension_events().
| gint gdk_input_ignore_wintab = FALSE |
Definition at line 179 of file gdkinput-win32.c.
Referenced by _gdk_windowing_init_check(), and gdk_input_init().
gint gdk_input_root_height [static] |
Definition at line 157 of file gdkinput-win32.c.
gint gdk_input_root_width [static] |
Definition at line 156 of file gdkinput-win32.c.
Definition at line 177 of file gdkinput-win32.c.
Referenced by gdk_event_translate(), gdk_input_disable_window(), gdk_input_enable_window(), gdk_input_set_key(), gdk_input_set_mode(), gdk_input_window_get_pointer(), and synthesize_crossing_events().
GList* gdk_input_windows [static] |
Definition at line 153 of file gdkinput-win32.c.
Referenced by gdk_input_set_extension_events(), gdk_input_window_destroy(), and gdk_input_window_find().
guint32 last_moved_cursor_id [static] |
Definition at line 161 of file gdkinput-win32.c.
GList* wintab_contexts [static] |
GdkWindow* wintab_window [static] |
1.5.1