Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkseat.h
Go to the documentation of this file.
1/* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2015 Red Hat
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Author: Carlos Garnacho <carlosg@gnome.org>
18 */
19
20#pragma once
21
22#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
23#error "Only <gdk/gdk.h> can be included directly."
24#endif
25
26#include <glib-object.h>
27#include <gdk/gdksurface.h>
28#include <gdk/gdkevents.h>
29#include <gdk/gdktypes.h>
30
32
33#define GDK_TYPE_SEAT (gdk_seat_get_type ())
34#define GDK_SEAT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_SEAT, GdkSeat))
35#define GDK_IS_SEAT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_SEAT))
36
37/**
38 * GdkSeatCapabilities:
39 * @GDK_SEAT_CAPABILITY_NONE: No input capabilities
40 * @GDK_SEAT_CAPABILITY_POINTER: The seat has a pointer (e.g. mouse)
41 * @GDK_SEAT_CAPABILITY_TOUCH: The seat has touchscreen(s) attached
42 * @GDK_SEAT_CAPABILITY_TABLET_STYLUS: The seat has drawing tablet(s) attached
43 * @GDK_SEAT_CAPABILITY_KEYBOARD: The seat has keyboard(s) attached
44 * @GDK_SEAT_CAPABILITY_TABLET_PAD: The seat has drawing tablet pad(s) attached
45 * @GDK_SEAT_CAPABILITY_ALL_POINTING: The union of all pointing capabilities
46 * @GDK_SEAT_CAPABILITY_ALL: The union of all capabilities
47 *
48 * Flags describing the seat capabilities.
49 */
60
65
68
71
75
78 GdkSeatCapabilities capabilities);
79
82
87
89
91
#define GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_ALL GdkDisplay * gdk_seat_get_display(GdkSeat *seat)
GDK_AVAILABLE_IN_ALL GdkDevice * gdk_seat_get_pointer(GdkSeat *seat)
GdkSeatCapabilities
Definition gdkseat.h:50
@ GDK_SEAT_CAPABILITY_KEYBOARD
Definition gdkseat.h:55
@ GDK_SEAT_CAPABILITY_ALL_POINTING
Definition gdkseat.h:57
@ GDK_SEAT_CAPABILITY_NONE
Definition gdkseat.h:51
@ GDK_SEAT_CAPABILITY_TOUCH
Definition gdkseat.h:53
@ GDK_SEAT_CAPABILITY_POINTER
Definition gdkseat.h:52
@ GDK_SEAT_CAPABILITY_ALL
Definition gdkseat.h:58
@ GDK_SEAT_CAPABILITY_TABLET_STYLUS
Definition gdkseat.h:54
@ GDK_SEAT_CAPABILITY_TABLET_PAD
Definition gdkseat.h:56
GDK_AVAILABLE_IN_ALL GList * gdk_seat_get_tools(GdkSeat *seat)
GDK_AVAILABLE_IN_ALL GdkSeatCapabilities gdk_seat_get_capabilities(GdkSeat *seat)
GDK_AVAILABLE_IN_ALL GList * gdk_seat_get_devices(GdkSeat *seat, GdkSeatCapabilities capabilities)
GDK_AVAILABLE_IN_ALL GType gdk_seat_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL GdkDevice * gdk_seat_get_keyboard(GdkSeat *seat)
struct _GdkDevice GdkDevice
Definition gdktypes.h:84
struct _GdkDisplay GdkDisplay
Definition gdktypes.h:90
typedefG_BEGIN_DECLS struct _GList GList
Definition glist.h:39
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
gsize GType
Definition gtype.h:427
GObject parent_instance
Definition gdkseat.h:63