Separator


Object Hierarchy:

Gtk.Separator Gtk.Separator Gtk.Separator Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Separator GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.Separator Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.Separator Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.Separator Gtk.ConstraintTarget->Gtk.Widget Gtk.Orientable Gtk.Orientable Gtk.Orientable->Gtk.Separator

Description:

[ CCode ( type_id = "gtk_separator_get_type ()" ) ]
public sealed class Separator : Widget, Accessible, Buildable, ConstraintTarget, Orientable

Draws a horizontal or vertical line to separate other widgets.

<picture> <source srcset="separator-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkSeparator" src="separator.png"> </picture>

A `GtkSeparator` can be used to group the widgets within a window. It displays a line with a shadow to make it appear sunken into the interface.

CSS nodes

`GtkSeparator` has a single CSS node with name separator. The node gets one of the .horizontal or .vertical style classes.

Accessibility

`GtkSeparator` uses the [enum@Gtk.AccessibleRole.separator] role.


Namespace: Gtk
Package: gtk4

Content:

Creation methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Gtk.Orientable