Presents contextual actions.
<picture> <source srcset="action-bar-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkActionBar" src="action-bar.png"> </picture> GtkActionBar is expected to be displayed below the content and expand horizontally to fill the area.
It allows placing children at the start or the end. In addition, it contains an internal centered box which is centered with respect to the full width of the box, even if the children at either side take up different amounts of space.
# GtkActionBar as GtkBuildable
The GtkActionBar implementation of the GtkBuildable interface supports adding children at the start or end sides by specifying "start" or "end" as the "type" attribute of a <child> element, or setting the center widget by specifying "center" value.
# CSS nodes
âââ [center widget] â°ââ box.end â°ââ [end children] ```
A `GtkActionBar`'s CSS node is called `actionbar`. It contains a
`revealer` subnode, which contains a `box` subnode, which contains two
`box` subnodes at the start and end of the action bar, with `start` and
`end` style classes respectively, as well as a center node that represents
the center child.
Each of the boxes contains children packed for that side.
function "+"
(Widget : access Gtk_Action_Bar_Record'Class)
return Gtk.Accessible.Gtk_Accessible
function "+"
(Widget : access Gtk_Action_Bar_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "+"
(Widget : access Gtk_Action_Bar_Record'Class)
return Gtk.Constraint_Target.Gtk_Constraint_Target
function "-"
(Interf : Gtk.Accessible.Gtk_Accessible)
return Gtk_Action_Bar
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Action_Bar
function "-"
(Interf : Gtk.Constraint_Target.Gtk_Constraint_Target)
return Gtk_Action_Bar
procedure Announce
(Self : not null access Gtk_Action_Bar_Record;
Message : UTF8_String;
Priority : Gtk.Accessible.Gtk_Accessible_Announcement_Priority)
function Get_Accessible_Id
(Self : not null access Gtk_Action_Bar_Record) return UTF8_String
function Get_Accessible_Parent
(Self : not null access Gtk_Action_Bar_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Accessible_Role
(Self : not null access Gtk_Action_Bar_Record)
return Gtk.Accessible.Gtk_Accessible_Role
function Get_At_Context
(Self : not null access Gtk_Action_Bar_Record)
return Gtk.Atcontext.Gtk_Atcontext
function Get_Bounds
(Self : not null access Gtk_Action_Bar_Record;
X : out Glib.Gint;
Y : out Glib.Gint;
Width : out Glib.Gint;
Height : out Glib.Gint) return Boolean
function Get_Center_Widget
(Self : not null access Gtk_Action_Bar_Record)
return Gtk.Widget.Gtk_Widget
Retrieves the center bar widget of the bar.
the center widget. Has transfer-ownership='none'.
function Get_First_Accessible_Child
(Self : not null access Gtk_Action_Bar_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Next_Accessible_Sibling
(Self : not null access Gtk_Action_Bar_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Platform_State
(Self : not null access Gtk_Action_Bar_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State) return Boolean
function Get_Revealed
(Self : not null access Gtk_Action_Bar_Record) return Boolean
Gets whether the contents of the action bar are revealed.
the current value of the [propertyGtk.ActionBar:revealed] property
function Get_Type return Glib.GType
type Gtk_Action_Bar is access all Gtk_Action_Bar_Record'Class;
function Gtk_Action_Bar_New return Gtk_Action_Bar
Creates a new action bar widget.
type Gtk_Action_Bar_Record is new Gtk_Widget_Record with null record;
procedure Gtk_New (Self : out Gtk_Action_Bar)
Creates a new action bar widget. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
package Implements_Gtk_Accessible is new Glib.Types.Implements
(Gtk.Accessible.Gtk_Accessible, Gtk_Action_Bar_Record, Gtk_Action_Bar);
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Action_Bar_Record, Gtk_Action_Bar);
package Implements_Gtk_Constraint_Target is new Glib.Types.Implements
(Gtk.Constraint_Target.Gtk_Constraint_Target, Gtk_Action_Bar_Record, Gtk_Action_Bar);
procedure Initialize (Self : not null access Gtk_Action_Bar_Record'Class)
Creates a new action bar widget. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure Pack_End
(Self : not null access Gtk_Action_Bar_Record;
Child : not null access Gtk.Widget.Gtk_Widget_Record'Class)
Adds a child to the action bar, packed with reference to the end of the action bar.
the widget to be added
procedure Pack_Start
(Self : not null access Gtk_Action_Bar_Record;
Child : not null access Gtk.Widget.Gtk_Widget_Record'Class)
Adds a child to the action, packed with reference to the start of the action bar.
the widget to be added
procedure Remove
(Self : not null access Gtk_Action_Bar_Record;
Child : not null access Gtk.Widget.Gtk_Widget_Record'Class)
Removes a child from the action bar.
the widget to be removed
procedure Reset_Property
(Self : not null access Gtk_Action_Bar_Record;
Property : Gtk.Accessible.Gtk_Accessible_Property)
procedure Reset_Relation
(Self : not null access Gtk_Action_Bar_Record;
Relation : Gtk.Accessible.Gtk_Accessible_Relation)
procedure Reset_State
(Self : not null access Gtk_Action_Bar_Record;
State : Gtk.Accessible.Gtk_Accessible_State)
Revealed_Property : constant Glib.Properties.Property_Boolean;
Controls whether the action bar shows its contents.
procedure Set_Accessible_Parent
(Self : not null access Gtk_Action_Bar_Record;
Parent : Gtk.Accessible.Gtk_Accessible;
Next_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Set_Center_Widget
(Self : not null access Gtk_Action_Bar_Record;
Center_Widget : access Gtk.Widget.Gtk_Widget_Record'Class)
Sets the center widget for the action bar.
a widget to use for the center
procedure Set_Revealed
(Self : not null access Gtk_Action_Bar_Record;
Revealed : Boolean)
Reveals or conceals the content of the action bar. Note: this does not show or hide the action bar in the [propertyGtk.Widget:visible] sense, so revealing has no effect if the action bar is hidden.
the new value for the property
procedure Update_Next_Accessible_Sibling
(Self : not null access Gtk_Action_Bar_Record;
New_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Update_Platform_State
(Self : not null access Gtk_Action_Bar_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State)