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 [enumGtk.AccessibleRole.separator] role.
<screenshot>gtk-separator</screenshot> <group>Ornaments</group>
function "+"
(Widget : access Gtk_Separator_Record'Class)
return Gtk.Accessible.Gtk_Accessible
function "+"
(Widget : access Gtk_Separator_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "+"
(Widget : access Gtk_Separator_Record'Class)
return Gtk.Constraint_Target.Gtk_Constraint_Target
function "+"
(Widget : access Gtk_Separator_Record'Class)
return Gtk.Orientable.Gtk_Orientable
function "-"
(Interf : Gtk.Accessible.Gtk_Accessible)
return Gtk_Separator
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Separator
function "-"
(Interf : Gtk.Constraint_Target.Gtk_Constraint_Target)
return Gtk_Separator
function "-"
(Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Separator
procedure Announce
(Self : not null access Gtk_Separator_Record;
Message : UTF8_String;
Priority : Gtk.Accessible.Gtk_Accessible_Announcement_Priority)
function Get_Accessible_Id
(Self : not null access Gtk_Separator_Record) return UTF8_String
function Get_Accessible_Parent
(Self : not null access Gtk_Separator_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Accessible_Role
(Self : not null access Gtk_Separator_Record)
return Gtk.Accessible.Gtk_Accessible_Role
function Get_At_Context
(Self : not null access Gtk_Separator_Record)
return Gtk.Atcontext.Gtk_Atcontext
function Get_Bounds
(Self : not null access Gtk_Separator_Record;
X : out Glib.Gint;
Y : out Glib.Gint;
Width : out Glib.Gint;
Height : out Glib.Gint) return Boolean
function Get_First_Accessible_Child
(Self : not null access Gtk_Separator_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Next_Accessible_Sibling
(Self : not null access Gtk_Separator_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Orientation
(Self : not null access Gtk_Separator_Record)
return Gtk.Enums.Gtk_Orientation
function Get_Platform_State
(Self : not null access Gtk_Separator_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State) return Boolean
function Get_Type return Glib.GType
procedure Gtk_New
(Self : out Gtk_Separator;
Orientation : Gtk.Enums.Gtk_Orientation)
Creates a new GtkSeparator with the given orientation. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the separator's orientation.
type Gtk_Separator is access all Gtk_Separator_Record'Class;
function Gtk_Separator_New
(Orientation : Gtk.Enums.Gtk_Orientation) return Gtk_Separator
Creates a new GtkSeparator with the given orientation.
the separator's orientation.
type Gtk_Separator_Record is new Gtk_Widget_Record with null record;
package Implements_Gtk_Accessible is new Glib.Types.Implements
(Gtk.Accessible.Gtk_Accessible, Gtk_Separator_Record, Gtk_Separator);
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Separator_Record, Gtk_Separator);
package Implements_Gtk_Constraint_Target is new Glib.Types.Implements
(Gtk.Constraint_Target.Gtk_Constraint_Target, Gtk_Separator_Record, Gtk_Separator);
package Implements_Gtk_Orientable is new Glib.Types.Implements
(Gtk.Orientable.Gtk_Orientable, Gtk_Separator_Record, Gtk_Separator);
procedure Initialize
(Self : not null access Gtk_Separator_Record'Class;
Orientation : Gtk.Enums.Gtk_Orientation)
Creates a new GtkSeparator with the given orientation. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the separator's orientation.
procedure Reset_Property
(Self : not null access Gtk_Separator_Record;
Property : Gtk.Accessible.Gtk_Accessible_Property)
procedure Reset_Relation
(Self : not null access Gtk_Separator_Record;
Relation : Gtk.Accessible.Gtk_Accessible_Relation)
procedure Reset_State
(Self : not null access Gtk_Separator_Record;
State : Gtk.Accessible.Gtk_Accessible_State)
procedure Set_Accessible_Parent
(Self : not null access Gtk_Separator_Record;
Parent : Gtk.Accessible.Gtk_Accessible;
Next_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Set_Orientation
(Self : not null access Gtk_Separator_Record;
Orientation : Gtk.Enums.Gtk_Orientation)
procedure Update_Next_Accessible_Sibling
(Self : not null access Gtk_Separator_Record;
New_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Update_Platform_State
(Self : not null access Gtk_Separator_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State)