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 
26 G_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 
35 typedef struct _GdkSeatDefault GdkSeatDefault;
36 typedef struct _GdkSeatDefaultClass GdkSeatDefaultClass;
37 
38 struct _GdkSeatDefault
39 {
40   GdkSeat parent_instance;
41 };
42 
43 struct _GdkSeatDefaultClass
44 {
45   GdkSeatClass parent_class;
46 };
47 
48 GType     gdk_seat_default_get_type     (void) G_GNUC_CONST;
49 
50 GdkSeat * gdk_seat_default_new_for_logical_pair         (GdkDevice      *pointer,
51                                                          GdkDevice      *keyboard);
52 
53 void      gdk_seat_default_add_physical_device          (GdkSeatDefault *seat,
54                                                          GdkDevice      *device);
55 void      gdk_seat_default_remove_physical_device       (GdkSeatDefault *seat,
56                                                          GdkDevice      *device);
57 void      gdk_seat_default_add_tool                     (GdkSeatDefault *seat,
58                                                          GdkDeviceTool  *tool);
59 void      gdk_seat_default_remove_tool                  (GdkSeatDefault *seat,
60                                                          GdkDeviceTool  *tool);
61 
62 G_END_DECLS
63 
64 #endif /* __GDK_SEAT_DEFAULT_PRIVATE_H__ */
65