mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-15 06:59:49 -05:00
Add grab object infrastructure
This commit is contained in:
parent
4be2ed9611
commit
359d667646
2 changed files with 26 additions and 2 deletions
|
|
@ -81,6 +81,18 @@ enum wlsc_pointer_type {
|
|||
WLSC_POINTER_IBEAM,
|
||||
};
|
||||
|
||||
struct wl_grab;
|
||||
struct wl_grab_interface {
|
||||
void (*motion)(struct wl_grab *grab,
|
||||
uint32_t time, int32_t x, int32_t y);
|
||||
void (*end)(struct wl_grab *grab);
|
||||
};
|
||||
|
||||
struct wl_grab {
|
||||
struct wl_grab_interface *interface;
|
||||
struct wl_input_device *input_device;
|
||||
};
|
||||
|
||||
struct wlsc_input_device {
|
||||
struct wl_input_device input_device;
|
||||
int32_t x, y;
|
||||
|
|
@ -91,6 +103,7 @@ struct wlsc_input_device {
|
|||
|
||||
uint32_t modifier_state;
|
||||
|
||||
struct wl_grab *grab_object;
|
||||
enum wlsc_grab_type grab;
|
||||
uint32_t grab_time;
|
||||
int32_t grab_x, grab_y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue