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`.
Content:
Properties:
public Icon default_icon { get ; set ; }
Default page icon.
public bool is_transferring_page { get ; }
Whether a page is being transferred.
public MenuModel menu_model { get ; set ; }
Tab context menu model.
public int n_pages { get ; }
The number of pages in the tab view.
public int n_pinned_pages { get ; }
The number of pinned pages in the tab view.
public SelectionModel pages { owned get ; }
A selection model with the tab view's pages.
public TabPage selected_page { get ; set ; }
The currently selected page.
public TabViewShortcuts shortcuts { get ; set ; }
The enabled shortcuts.
Creation methods:
Methods:
Signals:
public signal bool close_page (TabPage page)
Emitted after [method@TabView.
public signal unowned TabView ? create_window ()
Emitted when a tab should be transferred into a new window.
public signal void indicator_activated (TabPage page)
Emitted after the indicator icon on page
has been
activated.
public signal void page_attached (TabPage page, int position)
Emitted when a page has been created or transferred to self
.
public signal void page_detached (TabPage page, int position)
Emitted when a page has been removed or transferred to another view.
public signal void page_reordered (TabPage page, int position)
Emitted after page
has been reordered to position
.
public signal void setup_menu (TabPage ? page)
Emitted when a context menu is opened or closed for page
.
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gtk.Accessible
accessible_role
get_accessible_role
reset_property
reset_relation
reset_state
update_property
update_property_value
update_relation
update_relation_value
update_state
update_state_value
All known members inherited from interface Gtk.Buildable
add_child
custom_finished
custom_tag_end
custom_tag_start
get_buildable_id
get_id
get_internal_child
parser_finished
set_buildable_property
set_id