mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-22 06:59:44 -05:00
relative_pointer: create skeleton and build
Add protocol, header and type files to build. Create skeleton structs, creator and destroyer, and define implementations.
This commit is contained in:
parent
82d36025e1
commit
3a3d1b6617
6 changed files with 178 additions and 0 deletions
45
include/wlr/types/wlr_relative_pointer_v1.h
Normal file
45
include/wlr/types/wlr_relative_pointer_v1.h
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* 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_RELATIVE_POINTER_V1_H
|
||||
#define WLR_TYPES_WLR_RELATIVE_POINTER_V1_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
|
||||
|
||||
/* This protocol specifies a set of interfaces used for making clients able to
|
||||
* receive relative pointer events not obstructed by barriers (such as the
|
||||
* monitor edge or other pointer barriers).
|
||||
*/
|
||||
|
||||
struct wlr_relative_pointer_manager_v1 {
|
||||
struct wl_list resources;
|
||||
struct wl_global *global;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
struct wl_signal get_relative_pointer;
|
||||
} requests;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_relative_pointer_v1 {
|
||||
struct wl_resource *resource;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} destroy;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_relative_pointer_manager_v1 *wlr_relative_pointer_v1_create(struct wl_display *display);
|
||||
void wlr_relative_pointer_v1_destroy(struct wlr_relative_pointer_manager_v1 *relative_pointer_manager);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue