1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 * GtkToolbar copyright (C) Federico Mena
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library 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 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __GTK_TOOLBAR_H__
21 #define __GTK_TOOLBAR_H__
25 #include <gtk/gtkcontainer.h>
26 #include <gtk/gtkenums.h>
27 #include <gtk/gtkpixmap.h>
28 #include <gtk/gtksignal.h>
29 #include <gtk/gtktooltips.h>
34 #endif /* __cplusplus */
37 #define GTK_TOOLBAR(obj) GTK_CHECK_CAST (obj, gtk_toolbar_get_type (), GtkToolbar)
38 #define GTK_TOOLBAR_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_toolbar_get_type (), GtkToolbarClass)
39 #define GTK_IS_TOOLBAR(obj) GTK_CHECK_TYPE (obj, gtk_toolbar_get_type ())
42 typedef struct _GtkToolbar GtkToolbar;
43 typedef struct _GtkToolbarClass GtkToolbarClass;
47 GtkContainer container;
51 GtkOrientation orientation;
52 GtkToolbarStyle style;
53 gint space_size; /* big optional space between buttons */
55 GtkTooltips *tooltips;
61 struct _GtkToolbarClass
63 GtkContainerClass parent_class;
67 guint gtk_toolbar_get_type (void);
68 GtkWidget *gtk_toolbar_new (GtkOrientation orientation,
69 GtkToolbarStyle style);
71 void gtk_toolbar_append_item (GtkToolbar *toolbar,
73 const char *tooltip_text,
75 GtkSignalFunc callback,
77 void gtk_toolbar_prepend_item (GtkToolbar *toolbar,
79 const char *tooltip_text,
81 GtkSignalFunc callback,
83 void gtk_toolbar_insert_item (GtkToolbar *toolbar,
85 const char *tooltip_text,
87 GtkSignalFunc callback,
90 void gtk_toolbar_append_space (GtkToolbar *toolbar);
91 void gtk_toolbar_prepend_space (GtkToolbar *toolbar);
92 void gtk_toolbar_insert_space (GtkToolbar *toolbar,
98 #endif /* __cplusplus */
100 #endif /* __GTK_TOOLBAR_H__ */