toytoolkit: add axis handler
diff --git a/clients/window.h b/clients/window.h
index 779bc64..41f63da 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -196,6 +196,11 @@
uint32_t button,
enum wl_pointer_button_state state,
void *data);
+typedef void (*widget_axis_handler_t)(struct widget *widget,
+ struct input *input, uint32_t time,
+ uint32_t axis,
+ wl_fixed_t value,
+ void *data);
struct window *
window_create(struct display *display);
@@ -365,6 +370,9 @@
void
widget_set_button_handler(struct widget *widget,
widget_button_handler_t handler);
+void
+widget_set_axis_handler(struct widget *widget,
+ widget_axis_handler_t handler);
void
widget_schedule_redraw(struct widget *widget);