Package org.gnome.gtk

Class Separator

java.lang.Object
All Implemented Interfaces:
Proxy, Accessible, Buildable, ConstraintTarget, Orientable

@Generated("io.github.jwharm.JavaGI") public class Separator extends Widget implements 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 Gtk.AccessibleRole.separator role.