[zoomable] Fix Introspection data generation
[clutter-gtk] / clutter-gtk / gtk-clutter-zoomable.h
1 #if !defined(__CLUTTER_GTK_H_INSIDE__) && !defined(CLUTTER_GTK_COMPILATION)
2 #error "Only <clutter-gtk/clutter-gtk.h> can be included directly."
3 #endif
4
5 #ifndef __GTK_CLUTTER_ZOOMABLE_H__
6 #define __GTK_CLUTTER_ZOOMABLE_H__
7
8 #include <glib-object.h>
9 #include <gtk/gtk.h>
10
11 G_BEGIN_DECLS
12
13 #define GTK_CLUTTER_TYPE_ZOOMABLE               (gtk_clutter_zoomable_get_type ())
14 #define GTK_CLUTTER_ZOOMABLE(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_CLUTTER_TYPE_ZOOMABLE, GtkClutterZoomable))
15 #define GTK_CLUTTER_IS_ZOOMABLE(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_CLUTTER_TYPE_ZOOMABLE))
16 #define GTK_CLUTTER_ZOOMABLE_GET_IFACE(obj)     (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_CLUTTER_TYPE_ZOOMABLE, GtkClutterZoomableIface))
17
18 typedef struct _GtkClutterZoomable      GtkClutterZoomable; /* dummy typedef */
19 typedef struct _GtkClutterZoomableIface GtkClutterZoomableIface;
20
21 /**
22  * GtkClutterZoomableIface:
23  * @set_adjustment: virtual function for setting the zoom adjustment
24  * @get_adjustment: virtual function for getting the zoom adjustment
25  *
26  * The #GtkClutterZoomableIface structure contains only private data
27  *
28  * Since: 1.0
29  */
30 struct _GtkClutterZoomableIface
31 {
32   /*< private >*/
33   GTypeInterface parent_iface;
34
35   /*< public >*/
36   void           (* set_adjustment) (GtkClutterZoomable *zoomable,
37                                      GtkAdjustment      *z_adjust);
38
39   GtkAdjustment *(* get_adjustment) (GtkClutterZoomable *zoomable);
40 };
41
42 GType gtk_clutter_zoomable_get_type (void) G_GNUC_CONST;
43
44 void           gtk_clutter_zoomable_set_adjustment (GtkClutterZoomable *zoomable,
45                                                     GtkAdjustment      *z_adjust);
46 GtkAdjustment *gtk_clutter_zoomable_get_adjustment (GtkClutterZoomable *zoomable);
47
48 G_END_DECLS
49
50 #endif /* __GTK_CLUTTER_ZOOMABLE_H__ */