ViewSwitcherTitle


Object Hierarchy:

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

Description:

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

A view switcher title.

A widget letting you switch between multiple views contained by a [[email protected]], via an [class@ViewSwitcher].

It is designed to be used as the title widget of a [class@HeaderBar], and will display the window's title when the window is too narrow to fit the view switcher e.g. on mobile phones, or if there are less than two views.

`HdyViewSwitcherTitle` is intended to be used together with [class@ViewSwitcherBar].

A common use case is to bind the [property@ViewSwitcherBar:reveal] property to [property@ViewSwitcherTitle:title-visible] to automatically reveal the view switcher bar when the title label is displayed in place of the view switcher, as follows:

```xml <object class="GtkWindow"/> <child type="titlebar"> <object class="HdyHeaderBar"> <property name="centering-policy">strict</property> <child type="title"> <object class="HdyViewSwitcherTitle" id="view_switcher_title"> <property name="stack">stack</property> </object> </child> </object> < /child> <child> <object class="GtkBox"> <child> <object class="GtkStack" id="stack"/> </child> < child> <object class="HdyViewSwitcherBar"> <property name="stack">stack</property> <property name="reveal" bind-source="view_switcher_title" bind-property="title-visible" bind-flags="sync-create"/> </object> </child> < /object> </child> </object> ```

CSS nodes

`HdyViewSwitcherTitle` has a single CSS node with name `viewswitchertitle`.


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