mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-18 22:05:48 -05:00
Implement ext-virtual-keyboard-v1
This is derived from the implementation of virtual-keyboard-unstable-v1.
This commit is contained in:
parent
462046ffdc
commit
f2c919d3b9
5 changed files with 516 additions and 0 deletions
45
include/wlr/types/wlr_ext_virtual_keyboard_v1.h
Normal file
45
include/wlr/types/wlr_ext_virtual_keyboard_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_EXT_VIRTUAL_KEYBOARD_V1_H
|
||||
#define WLR_TYPES_EXT_VIRTUAL_KEYBOARD_V1_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/types/wlr_keyboard.h>
|
||||
|
||||
struct wlr_ext_virtual_keyboard_manager_v1 {
|
||||
struct wl_global *global;
|
||||
struct wl_list keyboards; // wlr_ext_virtual_keyboard_v1.link
|
||||
|
||||
struct {
|
||||
struct wl_signal new_keyboard; // struct wlr_ext_virtual_keyboard_v1
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
// private state
|
||||
struct wl_listener display_destroy;
|
||||
|
||||
};
|
||||
|
||||
struct wlr_ext_virtual_keyboard_v1 {
|
||||
struct wlr_keyboard keyboard;
|
||||
struct wl_resource *resource;
|
||||
struct wlr_ext_virtual_keyboard_manager_v1 *manager;
|
||||
struct wlr_seat *seat;
|
||||
bool has_keymap;
|
||||
|
||||
struct wl_list link; // wlr_ext_virtual_keyboard_manager_v1.ext_virtual_keyboards
|
||||
};
|
||||
|
||||
struct wlr_ext_virtual_keyboard_manager_v1* wlr_ext_virtual_keyboard_manager_v1_create(
|
||||
struct wl_display *display, uint32_t version);
|
||||
|
||||
struct wlr_ext_virtual_keyboard_v1 *wlr_ext_virtual_keyboard_v1_try_from_wlr_input_device(
|
||||
struct wlr_input_device *wlr_dev);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue