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(GtkActionBar* gtkActionBar, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new gtk.ActionBar widget.

Members

Functions

getActionBarStruct
GtkActionBar* getActionBarStruct(bool transferOwnership)

Get the main Gtk struct

getCenterWidget
Widget getCenterWidget()

Retrieves the center bar widget of the bar.

getStruct
void* getStruct()

the main Gtk struct as a void*

packEnd
void packEnd(Widget child)

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

packStart
void packStart(Widget child)

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

setCenterWidget
void setCenterWidget(Widget centerWidget)

Sets the center widget for the gtk.ActionBar

Static functions

getType
GType getType()

Variables

gtkActionBar
GtkActionBar* gtkActionBar;

the main Gtk struct

Inherited Members

From Bin

gtkBin
GtkBin* gtkBin;

the main Gtk struct

getBinStruct
GtkBin* getBinStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getChild
Widget getChild()

Gets the child of the gtk.Bin, 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.