1 | /* GTK - The GIMP Toolkit |
2 | * Copyright (C) 2007 Openismus GmbH |
3 | * |
4 | * This library is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU Lesser General Public |
6 | * License as published by the Free Software Foundation; either |
7 | * version 2 of the License, or (at your option) any later version. |
8 | * |
9 | * This library is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | * Lesser General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Lesser General Public |
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
16 | * |
17 | * Author: |
18 | * Mathias Hasselmann |
19 | */ |
20 | |
21 | #ifndef __GTK_TOOL_SHELL_H__ |
22 | #define __GTK_TOOL_SHELL_H__ |
23 | |
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/gtkenums.h> |
30 | #include <pango/pango.h> |
31 | #include <gtk/gtksizegroup.h> |
32 | |
33 | |
34 | G_BEGIN_DECLS |
35 | |
36 | #define GTK_TYPE_TOOL_SHELL (gtk_tool_shell_get_type ()) |
37 | #define GTK_TOOL_SHELL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOL_SHELL, GtkToolShell)) |
38 | #define GTK_IS_TOOL_SHELL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOL_SHELL)) |
39 | #define GTK_TOOL_SHELL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TOOL_SHELL, GtkToolShellIface)) |
40 | |
41 | typedef struct _GtkToolShell GtkToolShell; /* dummy typedef */ |
42 | typedef struct _GtkToolShellIface GtkToolShellIface; |
43 | |
44 | /** |
45 | * GtkToolShellIface: |
46 | * @get_icon_size: mandatory implementation of gtk_tool_shell_get_icon_size(). |
47 | * @get_orientation: mandatory implementation of gtk_tool_shell_get_orientation(). |
48 | * @get_style: mandatory implementation of gtk_tool_shell_get_style(). |
49 | * @get_relief_style: optional implementation of gtk_tool_shell_get_relief_style(). |
50 | * @rebuild_menu: optional implementation of gtk_tool_shell_rebuild_menu(). |
51 | * @get_text_orientation: optional implementation of gtk_tool_shell_get_text_orientation(). |
52 | * @get_text_alignment: optional implementation of gtk_tool_shell_get_text_alignment(). |
53 | * @get_ellipsize_mode: optional implementation of gtk_tool_shell_get_ellipsize_mode(). |
54 | * @get_text_size_group: optional implementation of gtk_tool_shell_get_text_size_group(). |
55 | * |
56 | * Virtual function table for the #GtkToolShell interface. |
57 | */ |
58 | struct _GtkToolShellIface |
59 | { |
60 | /*< private >*/ |
61 | GTypeInterface g_iface; |
62 | |
63 | /*< public >*/ |
64 | GtkIconSize (*get_icon_size) (GtkToolShell *shell); |
65 | GtkOrientation (*get_orientation) (GtkToolShell *shell); |
66 | GtkToolbarStyle (*get_style) (GtkToolShell *shell); |
67 | GtkReliefStyle (*get_relief_style) (GtkToolShell *shell); |
68 | void (*) (GtkToolShell *shell); |
69 | GtkOrientation (*get_text_orientation) (GtkToolShell *shell); |
70 | gfloat (*get_text_alignment) (GtkToolShell *shell); |
71 | PangoEllipsizeMode (*get_ellipsize_mode) (GtkToolShell *shell); |
72 | GtkSizeGroup * (*get_text_size_group) (GtkToolShell *shell); |
73 | }; |
74 | |
75 | GDK_AVAILABLE_IN_ALL |
76 | GType gtk_tool_shell_get_type (void) G_GNUC_CONST; |
77 | |
78 | GDK_AVAILABLE_IN_ALL |
79 | GtkIconSize gtk_tool_shell_get_icon_size (GtkToolShell *shell); |
80 | GDK_AVAILABLE_IN_ALL |
81 | GtkOrientation gtk_tool_shell_get_orientation (GtkToolShell *shell); |
82 | GDK_AVAILABLE_IN_ALL |
83 | GtkToolbarStyle gtk_tool_shell_get_style (GtkToolShell *shell); |
84 | GDK_AVAILABLE_IN_ALL |
85 | GtkReliefStyle gtk_tool_shell_get_relief_style (GtkToolShell *shell); |
86 | GDK_AVAILABLE_IN_ALL |
87 | void (GtkToolShell *shell); |
88 | GDK_AVAILABLE_IN_ALL |
89 | GtkOrientation gtk_tool_shell_get_text_orientation (GtkToolShell *shell); |
90 | GDK_AVAILABLE_IN_ALL |
91 | gfloat gtk_tool_shell_get_text_alignment (GtkToolShell *shell); |
92 | GDK_AVAILABLE_IN_ALL |
93 | PangoEllipsizeMode gtk_tool_shell_get_ellipsize_mode (GtkToolShell *shell); |
94 | GDK_AVAILABLE_IN_ALL |
95 | GtkSizeGroup * gtk_tool_shell_get_text_size_group (GtkToolShell *shell); |
96 | |
97 | G_END_DECLS |
98 | |
99 | #endif /* __GTK_TOOL_SHELL_H__ */ |
100 | |