gtkoffscreenbox.h 1.57 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
#ifndef __GTK_OFFSCREEN_BOX_H__
#define __GTK_OFFSCREEN_BOX_H__


#include <gdk/gdk.h>
#include <gtk/gtk.h>


G_BEGIN_DECLS

#define GTK_TYPE_OFFSCREEN_BOX              (gtk_offscreen_box_get_type ())
#define GTK_OFFSCREEN_BOX(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_OFFSCREEN_BOX, GtkOffscreenBox))
#define GTK_OFFSCREEN_BOX_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_OFFSCREEN_BOX, GtkOffscreenBoxClass))
#define GTK_IS_OFFSCREEN_BOX(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_OFFSCREEN_BOX))
#define GTK_IS_OFFSCREEN_BOX_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OFFSCREEN_BOX))
#define GTK_OFFSCREEN_BOX_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_OFFSCREEN_BOX, GtkOffscreenBoxClass))

typedef struct _GtkOffscreenBox	  GtkOffscreenBox;
typedef struct _GtkOffscreenBoxClass  GtkOffscreenBoxClass;

struct _GtkOffscreenBox
{
  GtkContainer container;

  GtkWidget *child1;
  GtkWidget *child2;

  GdkWindow *offscreen_window1;
  GdkWindow *offscreen_window2;

  gdouble angle;
};

struct _GtkOffscreenBoxClass
{
  GtkBinClass parent_class;
};

GType	   gtk_offscreen_box_get_type           (void) G_GNUC_CONST;
GtkWidget* gtk_offscreen_box_new       (void);
void       gtk_offscreen_box_add1      (GtkOffscreenBox *offscreen,
					GtkWidget       *child);
void       gtk_offscreen_box_add2      (GtkOffscreenBox *offscreen,
					GtkWidget       *child);
void       gtk_offscreen_box_set_angle (GtkOffscreenBox *offscreen,
					double           angle);



G_END_DECLS

#endif /* __GTK_OFFSCREEN_BOX_H__ */