1 /* gtk-clutter-scrollable.h: Interface for scrollable actors
3 * Copyright (C) 2008 Intel Corp.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 * Emmanuele Bassi <ebassi@linux.intel.com>
23 * Based on similar code by:
24 * Chris Lord <chris@openedhand.com>
27 #if !defined(__CLUTTER_GTK_H_INSIDE__) && !defined(CLUTTER_GTK_COMPILATION)
28 #error "Only <clutter-gtk/clutter-gtk.h> can be included directly."
31 #ifndef __GTK_CLUTTER_SCROLLABLE_H__
32 #define __GTK_CLUTTER_SCROLLABLE_H__
34 #include <glib-object.h>
39 #define GTK_CLUTTER_TYPE_SCROLLABLE (gtk_clutter_scrollable_get_type ())
40 #define GTK_CLUTTER_SCROLLABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_CLUTTER_TYPE_SCROLLABLE, GtkClutterScrollable))
41 #define GTK_CLUTTER_IS_SCROLLABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_CLUTTER_TYPE_SCROLLABLE))
42 #define GTK_CLUTTER_SCROLLABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_CLUTTER_TYPE_SCROLLABLE, GtkClutterScrollableIface))
44 typedef struct _GtkClutterScrollable GtkClutterScrollable; /* dummy */
45 typedef struct _GtkClutterScrollableIface GtkClutterScrollableIface;
48 * GtkClutterScrollableIface:
49 * @set_adjustments: virtual function for setting the horizontal
50 * and vertical adjustments of a #GtkClutterScrollable
51 * @get_adjustments: virtual function for retrieving the horizontal
52 * and vertical adjustments of a #GtkClutterScrollable
54 * The #GtkClutterScrollableIface structure contains only private data
55 * and should be accessed using the provided functions.
59 struct _GtkClutterScrollableIface
62 GTypeInterface parent_iface;
65 void (* set_adjustments) (GtkClutterScrollable *scrollable,
66 GtkAdjustment *h_adjust,
67 GtkAdjustment *v_adjust);
68 void (* get_adjustments) (GtkClutterScrollable *scrollable,
69 GtkAdjustment **h_adjust,
70 GtkAdjustment **v_adjust);
73 GType gtk_clutter_scrollable_get_type (void) G_GNUC_CONST;
75 void gtk_clutter_scrollable_set_adjustments (GtkClutterScrollable *scrollable,
76 GtkAdjustment *h_adjust,
77 GtkAdjustment *v_adjust);
78 void gtk_clutter_scrollable_get_adjustments (GtkClutterScrollable *scrollable,
79 GtkAdjustment **h_adjust,
80 GtkAdjustment **v_adjust);
84 #endif /* __GTK_CLUTTER_SCROLLABLE_H__ */