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