Class

AdwTabBar

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.

Available since:1.0

Hierarchy

hierarchy this AdwTabBar implements_0 GtkAccessible this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkConstraintTarget this--implements_2 ancestor_0 GtkWidget ancestor_0--this ancestor_1 GInitiallyUnowned ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1

Ancestors

  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GtkAccessible
  • GtkBuildable
  • GtkConstraintTarget

Constructors

adw_tab_bar_new

Creates a new AdwTabBar.

Available since: 1.0

Instance methods

adw_tab_bar_get_autohide

Gets whether the tabs automatically hide.

Available since: 1.0

adw_tab_bar_get_end_action_widget

Gets the widget shown after the tabs.

Available since: 1.0

adw_tab_bar_get_expand_tabs

Gets whether tabs expand to full width.

Available since: 1.0

adw_tab_bar_get_inverted

Gets whether tabs use inverted layout.

Available since: 1.0

adw_tab_bar_get_is_overflowing

Gets whether self is overflowing.

Available since: 1.0

adw_tab_bar_get_start_action_widget

Gets the widget shown before the tabs.

Available since: 1.0

adw_tab_bar_get_tabs_revealed

Gets whether the tabs are currently revealed.

Available since: 1.0

adw_tab_bar_get_view

Gets the tab view self controls.

Available since: 1.0

adw_tab_bar_set_autohide

Sets whether the tabs automatically hide.

Available since: 1.0

adw_tab_bar_set_end_action_widget

Sets the widget to show after the tabs.

Available since: 1.0

adw_tab_bar_set_expand_tabs

Sets whether tabs expand to full width.

Available since: 1.0

adw_tab_bar_set_inverted

Sets whether tabs tabs use inverted layout.

Available since: 1.0

adw_tab_bar_set_start_action_widget

Sets the widget to show before the tabs.

Available since: 1.0

adw_tab_bar_set_view

Sets the tab view self controls.

Available since: 1.0

adw_tab_bar_setup_extra_drop_target

Sets the supported types for this drop target.

Available since: 1.0

Properties

Adw.TabBar:autohide

Whether the tabs automatically hide.

Available since: 1.0

Adw.TabBar:end-action-widget

The widget shown after the tabs.

Available since: 1.0

Adw.TabBar:expand-tabs

Whether tabs expand to full width.

Available since: 1.0

Adw.TabBar:inverted

Whether tabs use inverted layout.

Available since: 1.0

Adw.TabBar:is-overflowing

Whether the tab bar is overflowing.

Available since: 1.0

Adw.TabBar:start-action-widget

The widget shown before the tabs.

Available since: 1.0

Adw.TabBar:tabs-revealed

Whether the tabs are currently revealed.

Available since: 1.0

Adw.TabBar:view

The tab view the tab bar controls.

Available since: 1.0

Signals

Adw.TabBar::extra-drag-drop

This signal is emitted when content is dropped onto a tab.

Available since: 1.0

Class structure

struct AdwTabBarClass {
  GtkWidgetClass parent_class;
  
}
Class members
parent_class
GtkWidgetClass
  No description available.