Debian Codegraph @

gdk/quartz/gdkquartz-cocoa-access.h

raw
1 /* gdkquartz-gtk-only.h
2 *
3 * Copyright (C) 2005-2007 Imendio AB
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef __GDK_QUARTZ_COCOA_ACCESS_H__
20 #define __GDK_QUARTZ_COCOA_ACCESS_H__
21
22 #ifndef __OBJC__
23 #error "This header declares Cocoa types and can be included only from source files compiled with Objective-C."
24 #endif
25
26 #include <AppKit/AppKit.h>
27 #include <gdk/gdk.h>
28
29 GDK_AVAILABLE_IN_ALL
30 NSEvent *gdk_quartz_event_get_nsevent (GdkEvent *event);
31 GDK_AVAILABLE_IN_ALL
32 NSWindow *gdk_quartz_window_get_nswindow (GdkWindow *window);
33 GDK_AVAILABLE_IN_ALL
34 NSView *gdk_quartz_window_get_nsview (GdkWindow *window);
35
36 #endif