1 /* GTK - The GTK+ Toolkit
2 * Copyright (C) 2007 Openismus GmbH
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.
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.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
23 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24 #error "Only <gtk/gtk.h> can be included directly."
27 #ifndef __GTK_TOOL_SHELL_H__
28 #define __GTK_TOOL_SHELL_H__
30 #include <gtk/gtkenums.h>
34 #define GTK_TYPE_TOOL_SHELL (gtk_tool_shell_get_type ())
35 #define GTK_TOOL_SHELL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOL_SHELL, GtkToolShell))
36 #define GTK_IS_TOOL_SHELL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOL_SHELL))
37 #define GTK_TOOL_SHELL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TOOL_SHELL, GtkToolShellIface))
39 typedef struct _GtkToolShell GtkToolShell; /* dummy typedef */
40 typedef struct _GtkToolShellIface GtkToolShellIface;
44 * @get_icon_size: mandatory implementation of gtk_tool_shell_get_icon_size().
45 * @get_orientation: mandatory implementation of gtk_tool_shell_get_orientation().
46 * @get_style: mandatory implementation of gtk_tool_shell_get_style().
47 * @get_relief_style: optional implementation of gtk_tool_shell_get_relief_style().
48 * @rebuild_menu: optional implementation of gtk_tool_shell_rebuild_menu().
50 * Virtual function table for the #GtkToolShell interface.
52 struct _GtkToolShellIface
55 GTypeInterface g_iface;
58 GtkIconSize (*get_icon_size) (GtkToolShell *shell);
59 GtkOrientation (*get_orientation) (GtkToolShell *shell);
60 GtkToolbarStyle (*get_style) (GtkToolShell *shell);
61 GtkReliefStyle (*get_relief_style) (GtkToolShell *shell);
62 void (*rebuild_menu) (GtkToolShell *shell);
65 GType gtk_tool_shell_get_type (void) G_GNUC_CONST;
67 GtkIconSize gtk_tool_shell_get_icon_size (GtkToolShell *shell);
68 GtkOrientation gtk_tool_shell_get_orientation (GtkToolShell *shell);
69 GtkToolbarStyle gtk_tool_shell_get_style (GtkToolShell *shell);
70 GtkReliefStyle gtk_tool_shell_get_relief_style (GtkToolShell *shell);
71 void gtk_tool_shell_rebuild_menu (GtkToolShell *shell);
75 #endif /* __GTK_TOOL_SHELL_H__ */