GtkSeparatorToolItem — A toolbar item that separates groups of other toolbar items
| GtkToolItem * | gtk_separator_tool_item_new () |
| void | gtk_separator_tool_item_set_draw () |
| gboolean | gtk_separator_tool_item_get_draw () |
| gboolean | draw | Read / Write |
| struct | GtkSeparatorToolItem |
| struct | GtkSeparatorToolItemClass |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkContainer
╰── GtkBin
╰── GtkToolItem
╰── GtkSeparatorToolItem
GtkSeparatorToolItem implements AtkImplementorIface, GtkBuildable and GtkActivatable.
#include <gtk/gtk.h>
A GtkSeparatorToolItem is a GtkToolItem that separates groups of other GtkToolItems. Depending on the theme, a GtkSeparatorToolItem will often look like a vertical line on horizontally docked toolbars.
If the GtkToolbar child property “expand” is TRUE and the property “draw” is FALSE, a GtkSeparatorToolItem will act as a “spring” that forces other items to the ends of the toolbar.
Use gtk_separator_tool_item_new() to create a new GtkSeparatorToolItem.
GtkSeparatorToolItem has a single CSS node with name separator.
GtkToolItem *
gtk_separator_tool_item_new (void); Create a new GtkSeparatorToolItem
the new GtkSeparatorToolItem
Since: 2.4
void gtk_separator_tool_item_set_draw (GtkSeparatorToolItem *item,gboolean draw);
Whether item is drawn as a vertical line, or just blank. Setting this to FALSE along with gtk_tool_item_set_expand() is useful to create an item that forces following items to the end of the toolbar.
item | ||
draw | whether |
Since: 2.4
gboolean
gtk_separator_tool_item_get_draw (GtkSeparatorToolItem *item); Returns whether item is drawn as a line, or just blank. See gtk_separator_tool_item_set_draw().
item |
TRUE if item is drawn as a line, or just blank.
Since: 2.4
struct GtkSeparatorToolItem;
struct GtkSeparatorToolItemClass {
GtkToolItemClass parent_class;
};
“draw” property“draw” gboolean
Whether the separator is drawn, or just blank.
Owner: GtkSeparatorToolItem
Flags: Read / Write
Default value: TRUE
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk3/3.24/GtkSeparatorToolItem.html