Class Separator

All Implemented Interfaces:
PointerInterface

public class Separator extends Widget
`GtkSeparator` is a horizontal or vertical separator widget.

![An example GtkSeparator](separators.png)

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_ACCESSIBLE_ROLE_SEPARATOR role.

https://docs.gtk.org/gtk4/class.Separator.html

  • Constructor Details

    • Separator

      public Separator(PointerContainer pointer)
    • Separator

      public Separator(int orientation)
      Creates a new `GtkSeparator` with the given orientation.
      Parameters:
      orientation - the separator’s orientation.
  • Method Details