Class
HandyViewSwitcher
Description [src]
final class Handy.ViewSwitcher : Gtk.Bin {
/* No available fields */
}
An adaptive view switcher.
An adaptive view switcher, designed to switch between multiple views in a
similar fashion than a GtkStackSwitcher
.
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 GtkHeaderBar
, HdyHeaderBar
doesn’t force a
vertical alignment on its title widget, so we recommend it over
GtkHeaderBar
.
CSS nodes
HdyViewSwitcher
has a single CSS node with name viewswitcher
.
Available since: | 1.0 |
Instance methods
hdy_view_switcher_get_narrow_ellipsize
Get the ellipsizing position of the narrow mode label.
Available since: 1.0
hdy_view_switcher_set_narrow_ellipsize
Sets the mode used to ellipsize the text in narrow mode.
Available since: 1.0
Properties
Handy.ViewSwitcher:narrow-ellipsize
The preferred place to ellipsize the string.
Available since: 1.0