diff options
Diffstat (limited to 'clients/window.h')
-rw-r--r-- | clients/window.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/clients/window.h b/clients/window.h index 5b631726..9eb4feca 100644 --- a/clients/window.h +++ b/clients/window.h @@ -228,6 +228,7 @@ typedef void (*widget_button_handler_t)(struct widget *widget, enum wl_pointer_button_state state, void *data); typedef void (*widget_touch_down_handler_t)(struct widget *widget, + struct input *input, uint32_t serial, uint32_t time, int32_t id, @@ -235,18 +236,22 @@ typedef void (*widget_touch_down_handler_t)(struct widget *widget, float y, void *data); typedef void (*widget_touch_up_handler_t)(struct widget *widget, + struct input *input, uint32_t serial, uint32_t time, int32_t id, void *data); typedef void (*widget_touch_motion_handler_t)(struct widget *widget, + struct input *input, uint32_t time, int32_t id, float x, float y, void *data); -typedef void (*widget_touch_frame_handler_t)(struct widget *widget,void *data); -typedef void (*widget_touch_cancel_handler_t)(struct widget *widget, void *data); +typedef void (*widget_touch_frame_handler_t)(struct widget *widget, + struct input *input, void *data); +typedef void (*widget_touch_cancel_handler_t)(struct widget *widget, + struct input *input, void *data); typedef void (*widget_axis_handler_t)(struct widget *widget, struct input *input, uint32_t time, uint32_t axis, @@ -316,6 +321,8 @@ window_get_display(struct window *window); void window_move(struct window *window, struct input *input, uint32_t time); void +window_touch_move(struct window *window, struct input *input, uint32_t time); +void window_get_allocation(struct window *window, struct rectangle *allocation); void window_schedule_redraw(struct window *window); |