2019-10-20 16:03:24 +02:00
|
|
|
/*
|
|
|
|
* This an unstable interface of wlroots. No guarantees are made regarding the
|
|
|
|
* future consistency of this API.
|
|
|
|
*/
|
|
|
|
#ifndef WLR_USE_UNSTABLE
|
|
|
|
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WLR_TYPES_WLR_VIRTUAL_POINTER_V1_H
|
|
|
|
#define WLR_TYPES_WLR_VIRTUAL_POINTER_V1_H
|
|
|
|
|
|
|
|
#include <wayland-server-core.h>
|
|
|
|
#include <wayland-server-protocol.h>
|
|
|
|
#include <wlr/interfaces/wlr_pointer.h>
|
2020-02-05 22:50:03 +01:00
|
|
|
#include <wlr/interfaces/wlr_output.h>
|
2019-10-20 16:03:24 +02:00
|
|
|
|
|
|
|
struct wlr_virtual_pointer_manager_v1 {
|
|
|
|
struct wl_global *global;
|
2022-05-24 18:46:59 +02:00
|
|
|
struct wl_list virtual_pointers; // wlr_virtual_pointer_v1.link
|
2019-10-20 16:03:24 +02:00
|
|
|
|
|
|
|
struct wl_listener display_destroy;
|
|
|
|
|
|
|
|
struct {
|
2023-08-23 20:12:12 +02:00
|
|
|
struct wl_signal new_virtual_pointer; // struct wlr_virtual_pointer_v1_new_pointer_event
|
2019-10-20 16:03:24 +02:00
|
|
|
struct wl_signal destroy;
|
|
|
|
} events;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_virtual_pointer_v1 {
|
2022-01-31 16:20:01 +01:00
|
|
|
struct wlr_pointer pointer;
|
2019-10-20 16:03:24 +02:00
|
|
|
struct wl_resource *resource;
|
|
|
|
/* Vertical and horizontal */
|
2022-03-09 20:52:27 +01:00
|
|
|
struct wlr_pointer_axis_event axis_event[2];
|
2019-10-20 16:03:24 +02:00
|
|
|
enum wl_pointer_axis axis;
|
|
|
|
bool axis_valid[2];
|
|
|
|
|
2022-05-24 18:46:59 +02:00
|
|
|
struct wl_list link; // wlr_virtual_pointer_manager_v1.virtual_pointers
|
2019-10-20 16:03:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_virtual_pointer_v1_new_pointer_event {
|
|
|
|
struct wlr_virtual_pointer_v1 *new_pointer;
|
|
|
|
/** Suggested by client; may be NULL. */
|
|
|
|
struct wlr_seat *suggested_seat;
|
2020-02-05 22:50:03 +01:00
|
|
|
struct wlr_output *suggested_output;
|
2019-10-20 16:03:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_virtual_pointer_manager_v1* wlr_virtual_pointer_manager_v1_create(
|
|
|
|
struct wl_display *display);
|
|
|
|
|
|
|
|
#endif
|