kiwmi/include/input/cursor.h

28 lines
802 B
C
Raw Normal View History

2019-03-07 18:25:38 +00:00
/* Copyright (c), Charlotte Meyer <dev@buffet.sh>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#ifndef KIWMI_INPUT_CURSOR_H
#define KIWMI_INPUT_CURSOR_H
2019-03-21 21:12:54 +00:00
#include <wayland-server.h>
2019-03-07 18:25:38 +00:00
#include <wlr/types/wlr_output_layout.h>
struct kiwmi_cursor {
struct kiwmi_server *server;
2019-03-07 18:25:38 +00:00
struct wlr_cursor *cursor;
struct wlr_xcursor_manager *xcursor_manager;
struct wl_listener cursor_motion;
struct wl_listener cursor_motion_absolute;
struct wl_listener cursor_button;
2019-03-07 18:25:38 +00:00
};
struct kiwmi_cursor *cursor_create(
struct kiwmi_server *server,
struct wlr_output_layout *output_layout);
2019-03-07 18:25:38 +00:00
#endif /* KIWMI_INPUT_CURSOR_H */