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#ifndef __GDK_SEAT_DEFAULT_PRIVATE_H__
21#define __GDK_SEAT_DEFAULT_PRIVATE_H__
22
23#include "gdkseat.h"
24#include "gdkseatprivate.h"
25
26G_BEGIN_DECLS
27
28#define GDK_TYPE_SEAT_DEFAULT (gdk_seat_default_get_type ())
29#define GDK_SEAT_DEFAULT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_SEAT_DEFAULT, GdkSeatDefault))
30#define GDK_IS_SEAT_DEFAULT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_SEAT_DEFAULT))
31#define GDK_SEAT_DEFAULT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GDK_TYPE_SEAT_DEFAULT, GdkSeatDefaultClass))
32#define GDK_IS_SEAT_DEFAULT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GDK_TYPE_SEAT_DEFAULT))
33#define GDK_SEAT_DEFAULT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_SEAT_DEFAULT, GdkSeatDefaultClass))
34
35typedef struct _GdkSeatDefault GdkSeatDefault;
36typedef struct _GdkSeatDefaultClass GdkSeatDefaultClass;
37
38struct _GdkSeatDefault
39{
40 GdkSeat parent_instance;
41};
42
43struct _GdkSeatDefaultClass
44{
45 GdkSeatClass parent_class;
46};
47
48GType gdk_seat_default_get_type (void) G_GNUC_CONST;
49
50GdkSeat * gdk_seat_default_new_for_logical_pair (GdkDevice *pointer,
51 GdkDevice *keyboard);
52
53void gdk_seat_default_add_physical_device (GdkSeatDefault *seat,
54 GdkDevice *device);
55void gdk_seat_default_remove_physical_device (GdkSeatDefault *seat,
56 GdkDevice *device);
57void gdk_seat_default_add_tool (GdkSeatDefault *seat,
58 GdkDeviceTool *tool);
59void gdk_seat_default_remove_tool (GdkSeatDefault *seat,
60 GdkDeviceTool *tool);
61
62G_END_DECLS
63
64#endif /* __GDK_SEAT_DEFAULT_PRIVATE_H__ */
65

source code of gtk/gdk/gdkseatdefaultprivate.h