ActionBar

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.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GtkActionBar widget.

Members

Functions

getCenterWidget
gtk.widget.Widget getCenterWidget()

Retrieves the center bar widget of the bar.

packEnd
void packEnd(gtk.widget.Widget child)

Adds child to action_bar, packed with reference to the end of the action_bar.

packStart
void packStart(gtk.widget.Widget child)

Adds child to action_bar, packed with reference to the start of the action_bar.

self
ActionBar self()

Returns this, for use in with statements.

setCenterWidget
void setCenterWidget(gtk.widget.Widget centerWidget)

Sets the center widget for the #GtkActionBar.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
ActionBarGidBuilder builder()

Get builder for gtk.action_bar.ActionBar

Inherited Members

From Bin

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Bin self()

Returns this, for use in with statements.

builder
BinGidBuilder builder()

Get builder for gtk.bin.Bin

getChild
gtk.widget.Widget getChild()

Gets the child of the #GtkBin, or null if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.