1/* gtktoggletoolbutton.h
2 *
3 * Copyright (C) 2002 Anders Carlsson <[email protected]>
4 * Copyright (C) 2002 James Henstridge <[email protected]>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __GTK_SEPARATOR_TOOL_ITEM_H__
21#define __GTK_SEPARATOR_TOOL_ITEM_H__
22
23#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24#error "Only <gtk/gtk.h> can be included directly."
25#endif
26
27#include <gtk/gtktoolitem.h>
28
29G_BEGIN_DECLS
30
31#define GTK_TYPE_SEPARATOR_TOOL_ITEM (gtk_separator_tool_item_get_type ())
32#define GTK_SEPARATOR_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItem))
33#define GTK_SEPARATOR_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItemClass))
34#define GTK_IS_SEPARATOR_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM))
35#define GTK_IS_SEPARATOR_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR_TOOL_ITEM))
36#define GTK_SEPARATOR_TOOL_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItemClass))
37
38typedef struct _GtkSeparatorToolItem GtkSeparatorToolItem;
39typedef struct _GtkSeparatorToolItemClass GtkSeparatorToolItemClass;
40typedef struct _GtkSeparatorToolItemPrivate GtkSeparatorToolItemPrivate;
41
42struct _GtkSeparatorToolItem
43{
44 GtkToolItem parent;
45
46 /*< private >*/
47 GtkSeparatorToolItemPrivate *priv;
48};
49
50/**
51 * GtkSeparatorToolItemClass:
52 * @parent_class: The parent class.
53 */
54struct _GtkSeparatorToolItemClass
55{
56 GtkToolItemClass parent_class;
57
58 /*< private >*/
59
60 /* Padding for future expansion */
61 void (* _gtk_reserved1) (void);
62 void (* _gtk_reserved2) (void);
63 void (* _gtk_reserved3) (void);
64 void (* _gtk_reserved4) (void);
65};
66
67GDK_AVAILABLE_IN_ALL
68GType gtk_separator_tool_item_get_type (void) G_GNUC_CONST;
69GDK_AVAILABLE_IN_ALL
70GtkToolItem *gtk_separator_tool_item_new (void);
71
72GDK_AVAILABLE_IN_ALL
73gboolean gtk_separator_tool_item_get_draw (GtkSeparatorToolItem *item);
74GDK_AVAILABLE_IN_ALL
75void gtk_separator_tool_item_set_draw (GtkSeparatorToolItem *item,
76 gboolean draw);
77
78G_END_DECLS
79
80#endif /* __GTK_SEPARATOR_TOOL_ITEM_H__ */
81