gtk.action_bar

Module for ActionBar class

Types 3

gtk.action_bar.ActionBar is designed to present contextual actions.

!An example GtkActionBar

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.

GtkActionBar as GtkBuildable

The gtk.action_bar.ActionBar implementation of the gtk.buildable.Buildable 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

actionbar
╰── revealer
    ╰── box
        ├── box.start
        │   ╰── [start children]
        ├── [center widget]
        ╰── box.end
            ╰── [end children]

A gtk.action_bar.ActionBar'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.

Methods
GType _gType() @property
ActionBar self()Returns `this`, for use in `with` statements.
ActionBarGidBuilder builder()Get builder for [gtk.action_bar.ActionBar] Returns: New builder object
bool revealed() @propertyGet `revealed` property. Returns: Controls whether the action bar shows its contents.
void revealed(bool propval) @propertySet `revealed` property. Params: propval = Controls whether the action bar shows its contents.
gtk.widget.Widget getCenterWidget()Retrieves the center bar widget of the bar. Returns: the center [gtk.widget.Widget]
bool getRevealed()Gets whether the contents of the action bar are revealed. Returns: the current value of the [gtk.action_bar.ActionBar.revealed] property
void packEnd(gtk.widget.Widget child)Adds child to action_bar, packed with reference to the end of the action_bar.
void packStart(gtk.widget.Widget child)Adds child to action_bar, packed with reference to the start of the action_bar.
void remove(gtk.widget.Widget child)Removes a child from action_bar.
void setCenterWidget(gtk.widget.Widget centerWidget = null)Sets the center widget for the [gtk.action_bar.ActionBar].
void setRevealed(bool revealed)Reveals or conceals the content of the action bar.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.action_bar.ActionBar] widget. Returns: a new [gtk.action_bar.ActionBar]

Fluent builder implementation template for gtk.action_bar.ActionBar

Methods
T revealed(bool propval)Set `revealed` property. Params: propval = Controls whether the action bar shows its contents. Returns: Builder instance for fluent chaining

Fluent builder for gtk.action_bar.ActionBar

Methods
ActionBar build()Create object from builder. Returns: New object