]> Pileus Git - ~andy/gtk/blob - gtk/gtkoffscreenwindow.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkoffscreenwindow.h
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, see <http://www.gnu.org/licenses/>.
14  *
15  * Authors: Cody Russell <crussell@canonical.com>
16  *          Alexander Larsson <alexl@redhat.com>
17  */
18
19 #ifndef __GTK_OFFSCREEN_WINDOW_H__
20 #define __GTK_OFFSCREEN_WINDOW_H__
21
22 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
23 #error "Only <gtk/gtk.h> can be included directly."
24 #endif
25
26 #include <gtk/gtkwindow.h>
27
28 G_BEGIN_DECLS
29
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))
36
37 typedef struct _GtkOffscreenWindow      GtkOffscreenWindow;
38 typedef struct _GtkOffscreenWindowClass GtkOffscreenWindowClass;
39
40 struct _GtkOffscreenWindow
41 {
42   GtkWindow parent_object;
43 };
44
45 struct _GtkOffscreenWindowClass
46 {
47   GtkWindowClass parent_class;
48
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);
54 };
55
56 GType            gtk_offscreen_window_get_type    (void) G_GNUC_CONST;
57
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);
61
62 G_END_DECLS
63
64 #endif /* __GTK_OFFSCREEN_WINDOW_H__ */