2018-07-13 14:40:56 +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
|
|
|
|
|
2018-05-24 19:46:54 +02:00
|
|
|
#ifndef WLR_TYPES_WLR_VIRTUAL_KEYBOARD_V1_H
|
|
|
|
#define WLR_TYPES_WLR_VIRTUAL_KEYBOARD_V1_H
|
|
|
|
|
2019-07-27 10:53:54 +02:00
|
|
|
#include <wayland-server-core.h>
|
2022-02-09 22:14:56 +01:00
|
|
|
#include <wlr/types/wlr_keyboard.h>
|
2018-05-24 19:46:54 +02:00
|
|
|
|
|
|
|
struct wlr_virtual_keyboard_manager_v1 {
|
|
|
|
struct wl_global *global;
|
2022-05-24 18:46:59 +02:00
|
|
|
struct wl_list virtual_keyboards; // wlr_virtual_keyboard_v1.link
|
2018-05-24 19:46:54 +02:00
|
|
|
|
|
|
|
struct wl_listener display_destroy;
|
|
|
|
|
|
|
|
struct {
|
2022-05-24 18:46:59 +02:00
|
|
|
struct wl_signal new_virtual_keyboard; // struct wlr_virtual_keyboard_v1 *
|
2018-08-26 23:23:12 +02:00
|
|
|
struct wl_signal destroy;
|
2018-05-24 19:46:54 +02:00
|
|
|
} events;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_virtual_keyboard_v1 {
|
2022-01-28 19:55:28 +01:00
|
|
|
struct wlr_keyboard keyboard;
|
2020-07-08 10:46:28 +02:00
|
|
|
struct wl_resource *resource;
|
2018-05-24 19:46:54 +02:00
|
|
|
struct wlr_seat *seat;
|
2019-06-24 15:59:03 +02:00
|
|
|
bool has_keymap;
|
2018-05-24 19:46:54 +02:00
|
|
|
|
2022-05-24 18:46:59 +02:00
|
|
|
struct wl_list link; // wlr_virtual_keyboard_manager_v1.virtual_keyboards
|
2018-05-24 19:46:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_virtual_keyboard_manager_v1* wlr_virtual_keyboard_manager_v1_create(
|
|
|
|
struct wl_display *display);
|
|
|
|
|
2020-07-08 10:46:28 +02:00
|
|
|
struct wlr_virtual_keyboard_v1 *wlr_input_device_get_virtual_keyboard(
|
|
|
|
struct wlr_input_device *wlr_dev);
|
|
|
|
|
2018-05-24 19:46:54 +02:00
|
|
|
#endif
|