Documentation for <wlr/types/wlr_touch.h>

Back to index

Table of contents

struct wlr_touch

struct wlr_touch {
	struct wlr_input_device base;
	const struct wlr_touch_impl *impl;
	char *output_name;
	double width_mm, height_mm;
	struct {
		struct wl_signal down;
		struct wl_signal up;
		struct wl_signal motion;
		struct wl_signal cancel;
		struct wl_signal frame;
	} events;
	void *data;
};

struct wlr_touch_cancel_event

struct wlr_touch_cancel_event {
	struct wlr_touch *touch;
	uint32_t time_msec;
	int32_t touch_id;
};

struct wlr_touch_down_event

struct wlr_touch_down_event {
	struct wlr_touch *touch;
	uint32_t time_msec;
	int32_t touch_id;
	double x, y;
};

struct wlr_touch_motion_event

struct wlr_touch_motion_event {
	struct wlr_touch *touch;
	uint32_t time_msec;
	int32_t touch_id;
	double x, y;
};

struct wlr_touch_up_event

struct wlr_touch_up_event {
	struct wlr_touch *touch;
	uint32_t time_msec;
	int32_t touch_id;
};