gtk/tests/gtkoffscreenbox.h

53 lines
1.6 KiB
C
Raw Normal View History

2009-01-16 09:39:35 +00:00
#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__ */