Debian Codegraph @

gdk/quartz/gdkdevicemanager-core-quartz.h

raw
1 /* gdkdevicemanager-quartz.h
2 *
3 * Copyright (C) 2009 Carlos Garnacho <[email protected]>
4 * Copyright (C) 2010 Kristian Rietveld <[email protected]>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef __GDK_QUARTZ_DEVICE_MANAGER_CORE__
21 #define __GDK_QUARTZ_DEVICE_MANAGER_CORE__
22
23 #include <gdkdevicemanagerprivate.h>
24 #include "gdkquartzdevicemanager-core.h"
25
26 #import <Cocoa/Cocoa.h>
27
28 G_BEGIN_DECLS
29
30 struct _GdkQuartzDeviceManagerCore
31 {
32 GdkDeviceManager parent_object;
33 GdkDevice *core_pointer;
34 GdkDevice *core_keyboard;
35 GList *known_tablet_devices;
36 guint num_active_devices;
37 };
38
39 struct _GdkQuartzDeviceManagerCoreClass
40 {
41 GdkDeviceManagerClass parent_class;
42 };
43
44 void _gdk_quartz_device_manager_register_device_for_ns_event (GdkDeviceManager *device_manager,
45 NSEvent *nsevent);
46
47 GdkDevice *_gdk_quartz_device_manager_core_device_for_ns_event (GdkDeviceManager *device_manager,
48 NSEvent *ns_event);
49
50 G_END_DECLS
51
52 #endif /* __GDK_QUARTZ_DEVICE_MANAGER__ */