| 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_GTK_ONLY_H__ |
| 20 |
#define __GDK_QUARTZ_GTK_ONLY_H__ |
| 21 |
|
| 22 |
#if !(defined (GTK_COMPILATION) || defined (GDK_COMPILATION)) |
| 23 |
#error "This API is for use only in Gtk internal code." |
| 24 |
#endif |
| 25 |
|
| 26 |
#include <AppKit/AppKit.h> |
| 27 |
#include <gdk/gdk.h> |
| 28 |
#include <gdk/quartz/gdkquartz.h> |
| 29 |
|
| 30 |
#if MAC_OS_X_VERSION_MIN_REQUIRED < 101400 |
| 31 |
#define GDK_QUARTZ_FILE_PBOARD_TYPE NSURLPboardType |
| 32 |
#define GDK_QUARTZ_URL_PBOARD_TYPE NSURLPboardType |
| 33 |
#define GDK_QUARTZ_COLOR_PBOARD_TYPE NSColorPboardType |
| 34 |
#define GDK_QUARTZ_STRING_PBOARD_TYPE NSStringPboardType |
| 35 |
#define GDK_QUARTZ_TIFF_PBOARD_TYPE NSTIFFPboardType |
| 36 |
#else |
| 37 |
#define GDK_QUARTZ_FILE_PBOARD_TYPE NSPasteboardTypeFileURL |
| 38 |
#define GDK_QUARTZ_URL_PBOARD_TYPE NSPasteboardTypeURL |
| 39 |
#define GDK_QUARTZ_COLOR_PBOARD_TYPE NSPasteboardTypeColor |
| 40 |
#define GDK_QUARTZ_STRING_PBOARD_TYPE NSPasteboardTypeString |
| 41 |
#define GDK_QUARTZ_TIFF_PBOARD_TYPE NSPasteboardTypeTIFF |
| 42 |
#endif |
| 43 |
|
| 44 |
/* Drag and Drop/Clipboard */ |
| 45 |
GDK_AVAILABLE_IN_ALL |
| 46 |
GdkAtom gdk_quartz_pasteboard_type_to_atom_libgtk_only (NSString *type); |
| 47 |
GDK_AVAILABLE_IN_ALL |
| 48 |
NSString *gdk_quartz_target_to_pasteboard_type_libgtk_only (const gchar *target); |
| 49 |
GDK_AVAILABLE_IN_ALL |
| 50 |
NSString *gdk_quartz_atom_to_pasteboard_type_libgtk_only (GdkAtom atom); |
| 51 |
|
| 52 |
/* Utilities */ |
| 53 |
GDK_AVAILABLE_IN_ALL |
| 54 |
NSImage *gdk_quartz_pixbuf_to_ns_image_libgtk_only (GdkPixbuf *pixbuf); |
| 55 |
|
| 56 |
#endif |