GtkActionBar is designed to present contextual actions. It 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.
# CSS nodes
GtkActionBar has a single CSS node with name actionbar.
function "+"
(Widget : access Gtk_Action_Bar_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Action_Bar
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. Since: gtk+ 3.12
the center Gtk.Widget.Gtk_Widget or null.
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 Gtk.Action_Bar.Gtk_Action_Bar widget. Since: gtk+ 3.12
type Gtk_Action_Bar_Record is new Gtk_Bin_Record with null record;
procedure Gtk_New (Self : out Gtk_Action_Bar)
Creates a new Gtk.Action_Bar.Gtk_Action_Bar widget. Since: gtk+ 3.12 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Action_Bar_Record, Gtk_Action_Bar);
procedure Initialize (Self : not null access Gtk_Action_Bar_Record'Class)
Creates a new Gtk.Action_Bar.Gtk_Action_Bar widget. Since: gtk+ 3.12 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 Child to Action_Bar, packed with reference to the end of the Action_Bar. Since: gtk+ 3.12
the Gtk.Widget.Gtk_Widget to be added to Action_Bar
procedure Pack_Start
(Self : not null access Gtk_Action_Bar_Record;
Child : not null access Gtk.Widget.Gtk_Widget_Record'Class)
Adds Child to Action_Bar, packed with reference to the start of the Action_Bar. Since: gtk+ 3.12
the Gtk.Widget.Gtk_Widget to be added to Action_Bar
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 Gtk.Action_Bar.Gtk_Action_Bar. Since: gtk+ 3.12
a widget to use for the center