X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkoffscreenwindow.h;h=d4592a0b53d26942deb59893c1b56459d7b0312b;hb=d484721b5ca9e82d6422cca8a3a40f001208f87b;hp=90d99879278f9b7b3e562e23a51a13afe0332456;hpb=cab66c128c238f97dc8c178ba7023c66c29f8c37;p=~andy%2Fgtk diff --git a/gtk/gtkoffscreenwindow.h b/gtk/gtkoffscreenwindow.h index 90d998792..d4592a0b5 100644 --- a/gtk/gtkoffscreenwindow.h +++ b/gtk/gtkoffscreenwindow.h @@ -1,10 +1,28 @@ -#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif +/* + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Authors: Cody Russell + * Alexander Larsson + */ #ifndef __GTK_OFFSCREEN_WINDOW_H__ #define __GTK_OFFSCREEN_WINDOW_H__ +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + #include G_BEGIN_DECLS @@ -27,11 +45,19 @@ struct _GtkOffscreenWindow struct _GtkOffscreenWindowClass { GtkWindowClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); }; -GType gtk_offscreen_window_get_type () G_GNUC_CONST; +GType gtk_offscreen_window_get_type (void) G_GNUC_CONST; -GtkWidget *gtk_offscreen_window_new (); +GtkWidget *gtk_offscreen_window_new (void); +cairo_surface_t *gtk_offscreen_window_get_surface (GtkOffscreenWindow *offscreen); +GdkPixbuf *gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen); G_END_DECLS