CtkSeparatorToolItem

CtkSeparatorToolItem — A toolbar item that separates groups of other toolbar items

Functions

Properties

gboolean draw Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── CtkWidget
            ╰── CtkContainer
                ╰── CtkBin
                    ╰── CtkToolItem
                        ╰── CtkSeparatorToolItem

Implemented Interfaces

CtkSeparatorToolItem implements AtkImplementorIface, CtkBuildable and CtkActivatable.

Includes

#include <ctk/ctk.h>

Description

A CtkSeparatorToolItem is a CtkToolItem that separates groups of other CtkToolItems. Depending on the theme, a CtkSeparatorToolItem will often look like a vertical line on horizontally docked toolbars.

If the CtkToolbar child property “expand” is TRUE and the property “draw” is FALSE, a CtkSeparatorToolItem will act as a “spring” that forces other items to the ends of the toolbar.

Use ctk_separator_tool_item_new() to create a new CtkSeparatorToolItem.

CSS nodes

CtkSeparatorToolItem has a single CSS node with name separator.

Functions

ctk_separator_tool_item_new ()

CtkToolItem *
ctk_separator_tool_item_new (void);

Create a new CtkSeparatorToolItem

Returns

the new CtkSeparatorToolItem

Since: 2.4


ctk_separator_tool_item_set_draw ()

void
ctk_separator_tool_item_set_draw (CtkSeparatorToolItem *item,
                                  gboolean draw);

Whether item is drawn as a vertical line, or just blank. Setting this to FALSE along with ctk_tool_item_set_expand() is useful to create an item that forces following items to the end of the toolbar.

Parameters

item

a CtkSeparatorToolItem

 

draw

whether item is drawn as a vertical line

 

Since: 2.4


ctk_separator_tool_item_get_draw ()

gboolean
ctk_separator_tool_item_get_draw (CtkSeparatorToolItem *item);

Returns whether item is drawn as a line, or just blank. See ctk_separator_tool_item_set_draw().

Parameters

Returns

TRUE if item is drawn as a line, or just blank.

Since: 2.4

Types and Values

struct CtkSeparatorToolItem

struct CtkSeparatorToolItem;

struct CtkSeparatorToolItemClass

struct CtkSeparatorToolItemClass {
  CtkToolItemClass parent_class;
};

Members

Property Details

The “draw” property

  “draw”                     gboolean

Whether the separator is drawn, or just blank.

Owner: CtkSeparatorToolItem

Flags: Read / Write

Default value: TRUE

See Also

CtkToolbar, CtkRadioToolButton