Class
Adw.TabBar
Description [src]
final class Adw.TabBar : Gtk.Widget {
/* No available fields */
}
A tab bar for AdwTabView
.
The AdwTabBar
widget is a tab bar that can be used with conjunction with
AdwTabView
.
AdwTabBar
can autohide and can optionally contain action widgets on both
sides of the tabs.
When there’s not enough space to show all the tabs, AdwTabBar
will scroll
them. Pinned tabs always stay visible and aren’t a part of the scrollable area.
CSS nodes
AdwTabBar
has a single CSS node with name tabbar
.
Constructors
adw_tab_bar_new
Creates a new AdwTabBar
.
Instance methods
adw_tab_bar_get_autohide
Gets whether the tabs automatically hide.
adw_tab_bar_get_end_action_widget
Gets the widget shown after the tabs.
adw_tab_bar_get_expand_tabs
Gets whether tabs expand to full width.
adw_tab_bar_get_inverted
Gets whether tabs use inverted layout.
adw_tab_bar_get_is_overflowing
Gets whether self
is overflowing.
adw_tab_bar_get_start_action_widget
Gets the widget shown before the tabs.
adw_tab_bar_get_tabs_revealed
Gets whether the tabs are currently revealed.
adw_tab_bar_get_view
Gets the tab view self
controls.
adw_tab_bar_set_autohide
Sets whether the tabs automatically hide.
adw_tab_bar_set_end_action_widget
Sets the widget to show after the tabs.
adw_tab_bar_set_expand_tabs
Sets whether tabs expand to full width.
adw_tab_bar_set_inverted
Sets whether tabs tabs use inverted layout.
adw_tab_bar_set_start_action_widget
Sets the widget to show before the tabs.
adw_tab_bar_set_view
Sets the tab view self
controls.
adw_tab_bar_setup_extra_drop_target
Sets the supported types for this drop target.
Properties
Adw.TabBar:autohide
Whether the tabs automatically hide.
Adw.TabBar:end-action-widget
The widget shown after the tabs.
Adw.TabBar:expand-tabs
Whether tabs expand to full width.
Adw.TabBar:inverted
Whether tabs use inverted layout.
Adw.TabBar:is-overflowing
Whether the tab bar is overflowing.
Adw.TabBar:start-action-widget
The widget shown before the tabs.
Adw.TabBar:tabs-revealed
Whether the tabs are currently revealed.
Adw.TabBar:view
The tab view the tab bar controls.
Signals
Adw.TabBar::extra-drag-drop
This signal is emitted when content is dropped onto a tab.