:right-sidebar: True ActionBar =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: ActionBar(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` :Constructors: :: ActionBar(**properties) new() -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: ActionBar :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``GtkActionBar`` widget. Methods ------- .. rst-class:: interim-class .. class:: ActionBar :no-index: .. method:: get_center_widget() -> ~gi.repository.Gtk.Widget | None Retrieves the center bar widget of the bar. .. method:: get_revealed() -> bool Gets whether the contents of the action bar are revealed. .. method:: pack_end(child: ~gi.repository.Gtk.Widget) -> None Adds ``child`` to ``action_bar``, packed with reference to the end of the ``action_bar``. :param child: the ``GtkWidget`` to be added to ``action_bar`` .. method:: pack_start(child: ~gi.repository.Gtk.Widget) -> None Adds ``child`` to ``action_bar``, packed with reference to the start of the ``action_bar``. :param child: the ``GtkWidget`` to be added to ``action_bar`` .. method:: remove(child: ~gi.repository.Gtk.Widget) -> None Removes a child from ``action_bar``. :param child: the ``GtkWidget`` to be removed .. method:: set_center_widget(center_widget: ~gi.repository.Gtk.Widget | None = None) -> None Sets the center widget for the ``GtkActionBar``. :param center_widget: a widget to use for the center .. method:: set_revealed(revealed: bool) -> None Reveals or conceals the content of the action bar. Note: this does not show or hide ``action_bar`` in the :obj:`~gi.repository.Gtk.Widget.props.visible` sense, so revealing has no effect if the action bar is hidden. :param revealed: The new value of the property Properties ---------- .. rst-class:: interim-class .. class:: ActionBar :no-index: .. attribute:: props.revealed :type: bool Controls whether the action bar shows its contents.