1/* gdkwaylandseat.h: Wayland GdkSeat
2 *
3 * Copyright 2020 GNOME Foundation
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 */
20#pragma once
21
22#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GTK_COMPILATION)
23#error "Only <gdk/wayland/gdkwayland.h> can be included directly."
24#endif
25
26#include <gdk/gdk.h>
27#include <wayland-client.h>
28
29G_BEGIN_DECLS
30
31#ifdef GTK_COMPILATION
32typedef struct _GdkWaylandSeat GdkWaylandSeat;
33#else
34typedef GdkSeat GdkWaylandSeat;
35#endif
36
37typedef struct _GdkWaylandSeatClass GdkWaylandSeatClass;
38
39#define GDK_TYPE_WAYLAND_SEAT (gdk_wayland_seat_get_type ())
40#define GDK_WAYLAND_SEAT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_WAYLAND_SEAT, GdkWaylandSeat))
41#define GDK_IS_WAYLAND_SEAT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_WAYLAND_SEAT))
42
43GDK_AVAILABLE_IN_ALL
44GType gdk_wayland_seat_get_type (void) G_GNUC_CONST;
45
46GDK_AVAILABLE_IN_ALL
47struct wl_seat * gdk_wayland_seat_get_wl_seat (GdkSeat *seat);
48
49G_END_DECLS
50

source code of gtk/gdk/wayland/gdkwaylandseat.h