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 #define GDK_TYPE_SEAT_DEFAULT         (gdk_seat_default_get_type ())
27 #define GDK_SEAT_DEFAULT(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_SEAT_DEFAULT, GdkSeatDefault))
28 #define GDK_IS_SEAT_DEFAULT(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_SEAT_DEFAULT))
29 #define GDK_SEAT_DEFAULT_CLASS(c)     (G_TYPE_CHECK_CLASS_CAST ((c), GDK_TYPE_SEAT_DEFAULT, GdkSeatDefaultClass))
30 #define GDK_IS_SEAT_DEFAULT_CLASS(c)  (G_TYPE_CHECK_CLASS_TYPE ((c), GDK_TYPE_SEAT_DEFAULT))
31 #define GDK_SEAT_DEFAULT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_SEAT_DEFAULT, GdkSeatDefaultClass))
32 
33 typedef struct _GdkSeatDefault GdkSeatDefault;
34 typedef struct _GdkSeatDefaultClass GdkSeatDefaultClass;
35 
36 struct _GdkSeatDefault
37 {
38   GdkSeat parent_instance;
39 };
40 
41 struct _GdkSeatDefaultClass
42 {
43   GdkSeatClass parent_class;
44 };
45 
46 GType     gdk_seat_default_get_type     (void) G_GNUC_CONST;
47 
48 GdkSeat * gdk_seat_default_new_for_master_pair (GdkDevice *pointer,
49                                                 GdkDevice *keyboard);
50 
51 void      gdk_seat_default_add_slave    (GdkSeatDefault *seat,
52                                          GdkDevice      *device);
53 void      gdk_seat_default_remove_slave (GdkSeatDefault *seat,
54                                          GdkDevice      *device);
55 void      gdk_seat_default_add_tool     (GdkSeatDefault *seat,
56                                          GdkDeviceTool  *tool);
57 void      gdk_seat_default_remove_tool  (GdkSeatDefault *seat,
58                                          GdkDeviceTool  *tool);
59 
60 #endif /* __GDK_SEAT_DEFAULT_PRIVATE_H__ */
61