Basics
Guides
API Reference
Basics
Guides
API Reference
[29:7] extends: object
Presents contextual actions.
GtkActionBar 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.
ActionBar ()
Creates a new action bar widget.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
Widget.
A Widget object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setRevealed (bool Value)
Controls whether the action bar shows its contents.
Value is the new property value.None.get_center_widget ()
Retrieves the center bar widget of the bar.
get_revealed ()
Gets whether the contents of the action bar are revealed.
pack_end (object child)
Adds a child to the action bar, packed with reference to the end of the action bar.
child is the widget to be added.None.pack_start (object child)
Adds a child to the action, packed with reference to the start of the action bar.
child is the widget to be added.None.remove (object child)
Removes a child from the action bar.
child is the widget to be removed.None.set_center_widget (object center_widget)
Sets the center widget for the action bar.
center_widget is a widget to use for the center.None.set_revealed (bool revealed)
Reveals or conceals the content of the action bar. Note: this does not show or hide the action bar in the [property@Gtk.Widget:visible] sense, so revealing has no effect if the action bar is hidden.
revealed is the new value for the property.None.[238:14] static extends: object
Generated metadata helpers for ActionBar class surfaces.
properties ()
Returns property metadata for
ActionBar.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.