1/* $Id: separatortoolitem.hg,v 1.2 2004/03/07 14:35:47 murrayc Exp $ */
2
3/* separatortoolitem.h
4 *
5 * Copyright (C) 2003 The gtkmm Development Team
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22#include <gtkmm/toolitem.h>
23_DEFS(gtkmm,gtk)
24_PINCLUDE(gtkmm/private/toolitem_p.h)
25
26
27namespace Gtk
28{
29
30/** A toolbar item that separates groups of other toolbar items.
31 *
32 * A Gtk::SeparatorToolItem is a Gtk::ToolItem that separates groups of other Gtk::ToolItems.
33 * Depending on the theme, it will often look like a vertical line on
34 * horizontally docked toolbars. If the property "expand" is <tt>true</tt> and the property "draw"
35 * is <tt>false</tt>, a Gtk::SeparatorToolItem will act as a "spring" that forces other items to the
36 * ends of the toolbar.
37 *
38 * @ingroup Widgets
39 */
40class SeparatorToolItem : public ToolItem
41{
42  _CLASS_GTKOBJECT(SeparatorToolItem, GtkSeparatorToolItem, GTK_SEPARATOR_TOOL_ITEM, Gtk::ToolItem, GtkToolItem)
43public:
44  _CTOR_DEFAULT()
45
46  _WRAP_METHOD(bool get_draw() const, gtk_separator_tool_item_get_draw)
47  _WRAP_METHOD(void set_draw(bool draw = true), gtk_separator_tool_item_set_draw)
48
49  _WRAP_PROPERTY("draw", bool)
50};
51
52} // namespace Gtk
53
54