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