TabView
Object Hierarchy:
Hdy.TabView
Hdy.TabView
Hdy.TabView
Gtk.Bin
Gtk.Bin
Gtk.Bin->Hdy.TabView
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.TabView
Atk.Implementor->Gtk.Bin
Atk.Implementor->Gtk.Container
Atk.Implementor->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Hdy.TabView
Gtk.Buildable->Gtk.Bin
Gtk.Buildable->Gtk.Container
Gtk.Buildable->Gtk.Widget
Description:
[ CCode ( type_id = "hdy_tab_view_get_type ()" ) ] [ Version ( since = "1.2" ) ]public class TabView : Bin , Implementor , Buildable
A dynamic tabbed container.
`HdyTabView` 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].
`HdyTabView` maintains a [class@TabPage] object for each page,which holds additional per-page properties. You can obtain the [
class@TabPage] for a page with [[email protected] _page], and as return value for [[email protected] ] and other functions for adding
children.
`HdyTabView` 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, or adding children via [[email protected] ].
CSS nodes
`HdyTabView` has a main CSS node with the name `tabview`.
It contains the subnode overlay, which contains subnodes stack and widget. The stack subnode contains the added pages.
``` tabview ╰── overlay ├── stack │ ╰── [ Children ] ╰── widget ```
Content:
Properties:
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 the view.
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)
This signal is 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.Bin
All known members inherited from class Gtk.Container
@foreach
add
add_with_properties
border_width
check_resize
child
child_get
child_get_property
child_get_valist
child_notify
child_notify_by_pspec
child_set
child_set_property
child_set_valist
child_type
class_find_child_property
class_list_child_properties
composite_name
find_child_property
forall
forall_internal
get_border_width
get_child_property
get_children
get_focus_chain
get_focus_child
get_focus_hadjustment
get_focus_vadjustment
get_path_for_child
get_resize_mode
handle_border_width
install_child_properties
install_child_property
list_child_properties
propagate_draw
remove
resize_children
resize_mode
set_border_width
set_child_property
set_focus_chain
set_focus_child
set_focus_hadjustment
set_focus_vadjustment
set_reallocate_redraws
set_resize_mode
unset_focus_chain
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 Atk.Implementor
All known members inherited from interface Gtk.Buildable
add_child
construct_child
custom_finished
custom_tag_end
custom_tag_start
get_internal_child
get_name
parser_finished
set_buildable_property
set_name