TabView


Object Hierarchy:

Adw.TabView Adw.TabView Adw.TabView Gtk.Widget Gtk.Widget Gtk.Widget->Adw.TabView GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Adw.TabView Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Adw.TabView Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Adw.TabView Gtk.ConstraintTarget->Gtk.Widget

Description:

[ CCode ( type_id = "adw_tab_view_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public sealed class TabView : Widget, Accessible, Buildable, ConstraintTarget

A dynamic tabbed container.

`AdwTabView` is a container which shows one child at a time. While it provides keyboard shortcuts for switching between pages, it does not provide a visible tab bar and relies on external widgets for that, such as [class@TabBar].

`AdwTabView` maintains a [class@TabPage] object for each page, which holds additional per-page properties. You can obtain the `AdwTabPage` for a page with [[email protected]_page], and as the return value for [[email protected]] and other functions for adding children.

`AdwTabView` only aims to be useful for dynamic tabs in multi-window document-based applications, such as web browsers, file managers, text editors or terminals. It does not aim to replace [[email protected]] for use cases such as tabbed dialogs.

As such, it does not support disabling page reordering or detaching.

`AdwTabView` adds a number of global page switching and reordering shortcuts. The [property@TabView:shortcuts] property can be used to manage them.

See [flags@TabViewShortcuts] for the list of the available shortcuts. All of the shortcuts are enabled by default.

[[email protected]_shortcuts] and [[email protected]_shortcuts] can be used to manage shortcuts in a convenient way, for example:

```c adw_tab_view_remove_shortcuts (view, ADW_TAB_VIEW_SHORTCUT_CONTROL_HOME | ADW_TAB_VIEW_SHORTCUT_CONTROL_END); ```

CSS nodes

`AdwTabView` has a main CSS node with the name `tabview`.


Namespace: Adw
Package: libadwaita-1

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable



2022 vala-language.org