]> Pileus Git - ~andy/gtk/blob - gtk/gtkquartz.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkquartz.h
1 /* gtkquartz.h: Utility functions used by the Quartz port
2  *
3  * Copyright (C) 2006 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 __GTK_QUARTZ_H__
20 #define __GTK_QUARTZ_H__
21
22 #import <Cocoa/Cocoa.h>
23 #include <gtk/gtkselection.h>
24
25 G_BEGIN_DECLS
26
27 NSSet   *_gtk_quartz_target_list_to_pasteboard_types    (GtkTargetList *target_list);
28 NSSet   *_gtk_quartz_target_entries_to_pasteboard_types (const GtkTargetEntry *targets,
29                                                          guint                 n_targets);
30
31 GList   *_gtk_quartz_pasteboard_types_to_atom_list (NSArray  *array);
32 GdkAtom _gtk_quartz_pasteboard_type_to_atom        (NSString *type);
33
34 GtkSelectionData *_gtk_quartz_get_selection_data_from_pasteboard (NSPasteboard *pasteboard,
35                                                                   GdkAtom       target,
36                                                                   GdkAtom       selection);
37
38 void _gtk_quartz_set_selection_data_for_pasteboard (NSPasteboard *pasteboard,
39                                                     GtkSelectionData *selection_data);
40
41 NSImage *_gtk_quartz_create_image_from_pixbuf (GdkPixbuf *pixbuf);
42
43 G_END_DECLS
44
45 #endif /* __GTK_QUARTZ_H__ */