Gtk.Action_Bar

Entities

Tagged Types

Access Types

Subprograms

Generic Instantiations

Description

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
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Action_Bar
Parameters
Interf
Return Value

Get_Center_Widget

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

Parameters
Self
Return Value

the center Gtk.Widget.Gtk_Widget or null.

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Action_Bar

type Gtk_Action_Bar is access all Gtk_Action_Bar_Record'Class;

Gtk_Action_Bar_New

function Gtk_Action_Bar_New return Gtk_Action_Bar

Creates a new Gtk.Action_Bar.Gtk_Action_Bar widget. Since: gtk+ 3.12

Return Value

Gtk_Action_Bar_Record

type Gtk_Action_Bar_Record is new Gtk_Bin_Record with null record;

Gtk_New

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.

Parameters
Self

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Action_Bar_Record, Gtk_Action_Bar);

Initialize

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.

Parameters
Self

Pack_End

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

Parameters
Self
Child

the Gtk.Widget.Gtk_Widget to be added to Action_Bar

Pack_Start

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

Parameters
Self
Child

the Gtk.Widget.Gtk_Widget to be added to Action_Bar

Set_Center_Widget

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

Parameters
Self
Center_Widget

a widget to use for the center