ActionBar


Object Hierarchy:

Gtk.ActionBar Gtk.ActionBar Gtk.ActionBar Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.ActionBar GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.ActionBar Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.ActionBar Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.ActionBar Gtk.ConstraintTarget->Gtk.Widget

Description:

[ CCode ( type_id = "gtk_action_bar_get_type ()" ) ]
public sealed class ActionBar : Widget, Accessible, Buildable, ConstraintTarget

`GtkActionBar` is designed to present contextual actions.

![An example GtkActionBar](action-bar.png)

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 `GtkActionBar` implementation of the `GtkBuildable` 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 `GtkActionBar`'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.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget