1 | /* GTK - The GIMP Toolkit |
2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
3 | * |
4 | * gtkorientable.h |
5 | * Copyright (C) 2008 Imendio AB |
6 | * Contact: Michael Natterer <mitch@imendio.com> |
7 | * |
8 | * This library is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU Lesser General Public |
10 | * License as published by the Free Software Foundation; either |
11 | * version 2 of the License, or (at your option) any later version. |
12 | * |
13 | * This library is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | * Lesser General Public License for more details. |
17 | * |
18 | * You should have received a copy of the GNU Lesser General Public |
19 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
20 | */ |
21 | |
22 | #ifndef __GTK_ORIENTABLE_H__ |
23 | #define __GTK_ORIENTABLE_H__ |
24 | |
25 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
26 | #error "Only <gtk/gtk.h> can be included directly." |
27 | #endif |
28 | |
29 | #include <gtk/gtkwidget.h> |
30 | |
31 | G_BEGIN_DECLS |
32 | |
33 | #define GTK_TYPE_ORIENTABLE (gtk_orientable_get_type ()) |
34 | #define GTK_ORIENTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ORIENTABLE, GtkOrientable)) |
35 | #define GTK_ORIENTABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_ORIENTABLE, GtkOrientableIface)) |
36 | #define GTK_IS_ORIENTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ORIENTABLE)) |
37 | #define GTK_IS_ORIENTABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_ORIENTABLE)) |
38 | #define GTK_ORIENTABLE_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_ORIENTABLE, GtkOrientableIface)) |
39 | |
40 | |
41 | typedef struct _GtkOrientable GtkOrientable; /* Dummy typedef */ |
42 | typedef struct _GtkOrientableIface GtkOrientableIface; |
43 | |
44 | struct _GtkOrientableIface |
45 | { |
46 | GTypeInterface base_iface; |
47 | }; |
48 | |
49 | |
50 | GDK_AVAILABLE_IN_ALL |
51 | GType gtk_orientable_get_type (void) G_GNUC_CONST; |
52 | |
53 | GDK_AVAILABLE_IN_ALL |
54 | void gtk_orientable_set_orientation (GtkOrientable *orientable, |
55 | GtkOrientation orientation); |
56 | GDK_AVAILABLE_IN_ALL |
57 | GtkOrientation gtk_orientable_get_orientation (GtkOrientable *orientable); |
58 | |
59 | G_END_DECLS |
60 | |
61 | #endif /* __GTK_ORIENTABLE_H__ */ |
62 | |