You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 line
2.3 KiB

  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 <crussell@canonical.com>
  18. * Alexander Larsson <alexl@redhat.com>
  19. */
  20. #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
  21. #error "Only <gtk/gtk.h> can be included directly."
  22. #endif
  23. #ifndef __GTK_OFFSCREEN_WINDOW_H__
  24. #define __GTK_OFFSCREEN_WINDOW_H__
  25. #include <gtk/gtkwindow.h>
  26. G_BEGIN_DECLS
  27. #define GTK_TYPE_OFFSCREEN_WINDOW (gtk_offscreen_window_get_type ())
  28. #define GTK_OFFSCREEN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindow))
  29. #define GTK_OFFSCREEN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindowClass))
  30. #define GTK_IS_OFFSCREEN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_OFFSCREEN_WINDOW))
  31. #define GTK_IS_OFFSCREEN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_OFFSCREEN_WINDOW))
  32. #define GTK_OFFSCREEN_WINDOW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindowClass))
  33. typedef struct _GtkOffscreenWindow GtkOffscreenWindow;
  34. typedef struct _GtkOffscreenWindowClass GtkOffscreenWindowClass;
  35. struct _GtkOffscreenWindow
  36. {
  37. GtkWindow parent_object;
  38. };
  39. struct _GtkOffscreenWindowClass
  40. {
  41. GtkWindowClass parent_class;
  42. };
  43. GType gtk_offscreen_window_get_type (void) G_GNUC_CONST;
  44. GtkWidget *gtk_offscreen_window_new (void);
  45. GdkPixmap *gtk_offscreen_window_get_pixmap (GtkOffscreenWindow *offscreen);
  46. GdkPixbuf *gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen);
  47. G_END_DECLS
  48. #endif /* __GTK_OFFSCREEN_WINDOW_H__ */