2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2 of the License, or (at your option) any later version.
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the
14 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
15 * Boston, MA 02111-1307, USA.
17 * Authors: Cody Russell <crussell@canonical.com>
18 * Alexander Larsson <alexl@redhat.com>
21 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22 #error "Only <gtk/gtk.h> can be included directly."
25 #ifndef __GTK_OFFSCREEN_WINDOW_H__
26 #define __GTK_OFFSCREEN_WINDOW_H__
28 #include <gtk/gtkwindow.h>
32 #define GTK_TYPE_OFFSCREEN_WINDOW (gtk_offscreen_window_get_type ())
33 #define GTK_OFFSCREEN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindow))
34 #define GTK_OFFSCREEN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindowClass))
35 #define GTK_IS_OFFSCREEN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_OFFSCREEN_WINDOW))
36 #define GTK_IS_OFFSCREEN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_OFFSCREEN_WINDOW))
37 #define GTK_OFFSCREEN_WINDOW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindowClass))
39 typedef struct _GtkOffscreenWindow GtkOffscreenWindow;
40 typedef struct _GtkOffscreenWindowClass GtkOffscreenWindowClass;
42 struct _GtkOffscreenWindow
44 GtkWindow parent_object;
47 struct _GtkOffscreenWindowClass
49 GtkWindowClass parent_class;
52 GType gtk_offscreen_window_get_type (void) G_GNUC_CONST;
54 GtkWidget *gtk_offscreen_window_new (void);
55 cairo_surface_t *gtk_offscreen_window_get_surface (GtkOffscreenWindow *offscreen);
56 GdkPixbuf *gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen);
60 #endif /* __GTK_OFFSCREEN_WINDOW_H__ */