1/*
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.
6 *
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.
11 *
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.
16 *
17 * Authors: Cody Russell <[email protected]>
18 * Alexander Larsson <[email protected]>
19 */
20
21#ifndef __GTK_OFFSCREEN_WINDOW_H__
22#define __GTK_OFFSCREEN_WINDOW_H__
23
24#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
25#error "Only <gtk/gtk.h> can be included directly."
26#endif
27
28#include <gtk/gtkwindow.h>
29
30G_BEGIN_DECLS
31
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))
38
39typedef struct _GtkOffscreenWindow GtkOffscreenWindow;
40typedef struct _GtkOffscreenWindowClass GtkOffscreenWindowClass;
41
42struct _GtkOffscreenWindow
43{
44 GtkWindow parent_object;
45};
46
47struct _GtkOffscreenWindowClass
48{
49 GtkWindowClass parent_class;
50};
51
52GType gtk_offscreen_window_get_type (void) G_GNUC_CONST;
53
54GtkWidget *gtk_offscreen_window_new (void);
55GdkPixmap *gtk_offscreen_window_get_pixmap (GtkOffscreenWindow *offscreen);
56GdkPixbuf *gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen);
57
58G_END_DECLS
59
60#endif /* __GTK_OFFSCREEN_WINDOW_H__ */
61