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, see <http://www.gnu.org/licenses/>.
15 * Authors: Cody Russell <crussell@canonical.com>
16 * Alexander Larsson <alexl@redhat.com>
19 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
20 #error "Only <gtk/gtk.h> can be included directly."
23 #ifndef __GTK_OFFSCREEN_WINDOW_H__
24 #define __GTK_OFFSCREEN_WINDOW_H__
26 #include <gtk/gtkwindow.h>
30 #define GTK_TYPE_OFFSCREEN_WINDOW (gtk_offscreen_window_get_type ())
31 #define GTK_OFFSCREEN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindow))
32 #define GTK_OFFSCREEN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindowClass))
33 #define GTK_IS_OFFSCREEN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_OFFSCREEN_WINDOW))
34 #define GTK_IS_OFFSCREEN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_OFFSCREEN_WINDOW))
35 #define GTK_OFFSCREEN_WINDOW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindowClass))
37 typedef struct _GtkOffscreenWindow GtkOffscreenWindow;
38 typedef struct _GtkOffscreenWindowClass GtkOffscreenWindowClass;
40 struct _GtkOffscreenWindow
42 GtkWindow parent_object;
45 struct _GtkOffscreenWindowClass
47 GtkWindowClass parent_class;
49 /* Padding for future expansion */
50 void (*_gtk_reserved1) (void);
51 void (*_gtk_reserved2) (void);
52 void (*_gtk_reserved3) (void);
53 void (*_gtk_reserved4) (void);
56 GType gtk_offscreen_window_get_type (void) G_GNUC_CONST;
58 GtkWidget *gtk_offscreen_window_new (void);
59 cairo_surface_t *gtk_offscreen_window_get_surface (GtkOffscreenWindow *offscreen);
60 GdkPixbuf *gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen);
64 #endif /* __GTK_OFFSCREEN_WINDOW_H__ */