Documentation for <wlr/types/wlr_pointer.h>

Back to index

Table of contents

enum wlr_axis_orientation

enum wlr_axis_orientation {
	WLR_AXIS_ORIENTATION_VERTICAL,
	WLR_AXIS_ORIENTATION_HORIZONTAL,
};

enum wlr_axis_source

enum wlr_axis_source {
	WLR_AXIS_SOURCE_WHEEL,
	WLR_AXIS_SOURCE_FINGER,
	WLR_AXIS_SOURCE_CONTINUOUS,
	WLR_AXIS_SOURCE_WHEEL_TILT,
};

struct wlr_pointer

struct wlr_pointer {
	struct wlr_input_device base;
	const struct wlr_pointer_impl *impl;
	char *output_name;
	struct {
		struct wl_signal motion;
		struct wl_signal motion_absolute;
		struct wl_signal button;
		struct wl_signal axis;
		struct wl_signal frame;
		struct wl_signal swipe_begin;
		struct wl_signal swipe_update;
		struct wl_signal swipe_end;
		struct wl_signal pinch_begin;
		struct wl_signal pinch_update;
		struct wl_signal pinch_end;
		struct wl_signal hold_begin;
		struct wl_signal hold_end;
	} events;
	void *data;
};

struct wlr_pointer_axis_event

struct wlr_pointer_axis_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	enum wlr_axis_source source;
	enum wlr_axis_orientation orientation;
	double delta;
	int32_t delta_discrete;
};

struct wlr_pointer_button_event

struct wlr_pointer_button_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	uint32_t button;
	enum wlr_button_state state;
};

struct wlr_pointer_hold_begin_event

struct wlr_pointer_hold_begin_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	uint32_t fingers;
};

struct wlr_pointer_hold_end_event

struct wlr_pointer_hold_end_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	bool cancelled;
};

struct wlr_pointer_motion_absolute_event

struct wlr_pointer_motion_absolute_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	double x, y;
};

struct wlr_pointer_motion_event

struct wlr_pointer_motion_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	double delta_x, delta_y;
	double unaccel_dx, unaccel_dy;
};

struct wlr_pointer_pinch_begin_event

struct wlr_pointer_pinch_begin_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	uint32_t fingers;
};

struct wlr_pointer_pinch_end_event

struct wlr_pointer_pinch_end_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	bool cancelled;
};

struct wlr_pointer_pinch_update_event

struct wlr_pointer_pinch_update_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	uint32_t fingers;
	double dx, dy;
	double scale;
	double rotation;
};

struct wlr_pointer_swipe_begin_event

struct wlr_pointer_swipe_begin_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	uint32_t fingers;
};

struct wlr_pointer_swipe_end_event

struct wlr_pointer_swipe_end_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	bool cancelled;
};

struct wlr_pointer_swipe_update_event

struct wlr_pointer_swipe_update_event {
	struct wlr_pointer *pointer;
	uint32_t time_msec;
	uint32_t fingers;
	double dx, dy;
};