HeaderBar


Object Hierarchy:

Hdy.HeaderBar Hdy.HeaderBar Hdy.HeaderBar Gtk.Container Gtk.Container Gtk.Container->Hdy.HeaderBar Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Hdy.HeaderBar Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Hdy.HeaderBar Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget

Description:

[ CCode ( type_id = "hdy_header_bar_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public class HeaderBar : Container, Implementor, Buildable

A title bar widget.

`HdyHeaderBar` is similar to [class@Gtk.HeaderBar] but is designed to fix some of its shortcomings for adaptive applications.

`HdyHeaderBar` doesn't force the custom title widget to be vertically centered, hence allowing it to fill up the whole height, which is e.g. needed for [class@ViewSwitcher].

When used in a mobile dialog, `HdyHeaderBar` will replace its window decorations by a back button allowing to close it. It doesn't have to be its direct child and you can use any complex contraption you like as the dialog's titlebar.

`HdyHeaderBar` can be used in window's content area rather than titlebar, and will still be draggable and will handle right click, middle click and double click as expected from a titlebar. This is particularly useful with [class@Window] or [class@ApplicationWindow].

CSS nodes

`HdyHeaderBar` has a single CSS node with name `headerbar`.


Namespace: Hdy
Package: libhandy-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor