gtkgears.h 1.18 KB
Newer Older
Alexander Larsson's avatar
Alexander Larsson committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef __GTK_GEARS_H__
#define __GTK_GEARS_H__

#include <gtk/gtk.h>

G_BEGIN_DECLS

enum {
  GTK_GEARS_X_AXIS,
  GTK_GEARS_Y_AXIS,
  GTK_GEARS_Z_AXIS,

  GTK_GEARS_N_AXIS
};

#define GTK_TYPE_GEARS      (gtk_gears_get_type ())
#define GTK_GEARS(inst)     (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
                             GTK_TYPE_GEARS,             \
                             GtkGears))
#define GTK_IS_GEARS(inst)  (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
                             GTK_TYPE_GEARS))

23 24 25 26
typedef struct _GtkGears GtkGears;
typedef struct _GtkGearsClass GtkGearsClass;

struct _GtkGears {
Alexander Larsson's avatar
Alexander Larsson committed
27
  GtkGLArea parent;
28
};
Alexander Larsson's avatar
Alexander Larsson committed
29

30
struct _GtkGearsClass {
Alexander Larsson's avatar
Alexander Larsson committed
31
  GtkGLAreaClass parent_class;
32
};
Alexander Larsson's avatar
Alexander Larsson committed
33

34
GType      gtk_gears_get_type      (void) G_GNUC_CONST;
Alexander Larsson's avatar
Alexander Larsson committed
35

36
GtkWidget *gtk_gears_new           (void);
Alexander Larsson's avatar
Alexander Larsson committed
37 38 39 40 41 42 43 44 45 46 47 48
void       gtk_gears_set_axis      (GtkGears *gears,
                                    int       axis,
                                    double    value);
double     gtk_gears_get_axis      (GtkGears *gears,
                                    int       axis);
void       gtk_gears_set_fps_label (GtkGears *gears,
                                    GtkLabel *label);


G_END_DECLS

#endif /* __GTK_GEARS_H__ */