#include <cursor.h>
Public Member Functions | |
FreezePointer () | |
void | freeze_pointer (GtkWindow *window, MotionDeltaFunction function, void *data) |
void | unfreeze_pointer (GtkWindow *window) |
Static Public Member Functions | |
static gboolean | motion_delta (GtkWidget *widget, GdkEventMotion *event, FreezePointer *self) |
Private Types | |
typedef void(* | MotionDeltaFunction )(int x, int y, unsigned int state, void *data) |
Private Attributes | |
unsigned int | handle_motion |
int | recorded_x |
int | recorded_y |
MotionDeltaFunction | m_function |
void * | m_data |
Definition at line 120 of file cursor.h.
typedef void(* FreezePointer::MotionDeltaFunction)(int x, int y, unsigned int state, void *data) [private] |
void FreezePointer::freeze_pointer | ( | GtkWindow * | window, | |
MotionDeltaFunction | function, | |||
void * | data | |||
) | [inline] |
Definition at line 145 of file cursor.h.
References create_blank_cursor(), handle_motion, m_data, m_function, motion_delta(), recorded_x, recorded_y, Sys_GetCursorPos(), and Sys_SetCursorPos().
static gboolean FreezePointer::motion_delta | ( | GtkWidget * | widget, | |
GdkEventMotion * | event, | |||
FreezePointer * | self | |||
) | [inline, static] |
Definition at line 132 of file cursor.h.
References Sys_GetCursorPos(), and Sys_SetCursorPos().
Referenced by freeze_pointer().
void FreezePointer::unfreeze_pointer | ( | GtkWindow * | window | ) | [inline] |
Definition at line 169 of file cursor.h.
References handle_motion, m_data, m_function, recorded_x, recorded_y, and Sys_SetCursorPos().
unsigned int FreezePointer::handle_motion [private] |
Definition at line 122 of file cursor.h.
Referenced by freeze_pointer(), and unfreeze_pointer().
void* FreezePointer::m_data [private] |
Definition at line 126 of file cursor.h.
Referenced by freeze_pointer(), and unfreeze_pointer().
MotionDeltaFunction FreezePointer::m_function [private] |
Definition at line 125 of file cursor.h.
Referenced by freeze_pointer(), and unfreeze_pointer().
int FreezePointer::recorded_x [private] |
Definition at line 123 of file cursor.h.
Referenced by freeze_pointer(), and unfreeze_pointer().
int FreezePointer::recorded_y [private] |
Definition at line 123 of file cursor.h.
Referenced by freeze_pointer(), and unfreeze_pointer().