ViewSwitcher


Object Hierarchy:

Hdy.ViewSwitcher Hdy.ViewSwitcher Hdy.ViewSwitcher Gtk.Bin Gtk.Bin Gtk.Bin->Hdy.ViewSwitcher Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin 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.ViewSwitcher Atk.Implementor->Gtk.Bin Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Hdy.ViewSwitcher Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget

Description:

[ CCode ( type_id = "hdy_view_switcher_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public class ViewSwitcher : Bin, Implementor, Buildable

An adaptive view switcher.

An adaptive view switcher, designed to switch between multiple views in a similar fashion than a [[email protected]].

Depending on the available width, the view switcher can adapt from a wide mode showing the view's icon and title side by side, to a narrow mode showing the view's icon and title one on top of the other, in a more compact way. This can be controlled via the policy property.

To look good in a header bar, an `HdyViewSwitcher` requires to fill its full height. Contrary to [[email protected]], [class@HeaderBar] doesn't force a vertical alignment on its title widget, so we recommend it over [[email protected]].

CSS nodes

`HdyViewSwitcher` has a single CSS node with name `viewswitcher`.


Namespace: Hdy
Package: libhandy-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Container
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Buildable



2022 vala-language.org