SeparatorToolItemRef

public struct SeparatorToolItemRef : SeparatorToolItemProtocol, GWeakCapturing

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 GtkSeparatorToolItem: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.

CSS nodes

GtkSeparatorToolItem has a single CSS node with name separator.

The SeparatorToolItemRef type acts as a lightweight Swift reference to an underlying GtkSeparatorToolItem instance. It exposes methods that can operate on this data type through SeparatorToolItemProtocol conformance. Use SeparatorToolItemRef only as an unowned reference to an existing GtkSeparatorToolItem instance.

  • ptr
    Untyped pointer to the underlying `GtkSeparatorToolItem` instance.
    

    For type-safe access, use the generated, typed pointer separator_tool_item_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

SeparatorToolItem Class