adw.tab_bar

Module for [TabBar] class

Types 3

A tab bar for class@TabView.

tab-bar

The [adw.tab_bar.TabBar] widget is a tab bar that can be used with conjunction with [adw.tab_view.TabView]. It is typically used as a top bar within class@ToolbarView.

[adw.tab_bar.TabBar] 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, [adw.tab_bar.TabBar] will scroll them. Pinned tabs always stay visible and aren't a part of the scrollable area.

CSS nodes

[adw.tab_bar.TabBar] has a single CSS node with name tabbar.

Methods
GType _gType() @property
TabBar self()Returns `this`, for use in `with` statements.
TabBarGidBuilder builder()Get builder for [adw.tab_bar.TabBar] Returns: New builder object
bool autohide() @propertyGet `autohide` property. Returns: Whether the tabs automatically hide.
void autohide(bool propval) @propertySet `autohide` property. Params: propval = Whether the tabs automatically hide.
gtk.widget.Widget endActionWidget() @propertyGet `endActionWidget` property. Returns: The widget shown after the tabs.
void endActionWidget(gtk.widget.Widget propval) @propertySet `endActionWidget` property. Params: propval = The widget shown after the tabs.
bool expandTabs() @propertyGet `expandTabs` property. Returns: Whether tabs expand to full width.
void expandTabs(bool propval) @propertySet `expandTabs` property. Params: propval = Whether tabs expand to full width.
gdk.types.DragAction extraDragPreferredAction() @propertyGet `extraDragPreferredAction` property. Returns: The unique action on the `current-drop` of the `signal@TabBar::extra-drag-drop`.
bool extraDragPreload() @propertyGet `extraDragPreload` property. Returns: Whether the drop data should be preloaded on hover.
void extraDragPreload(bool propval) @propertySet `extraDragPreload` property. Params: propval = Whether the drop data should be preloaded on hover.
bool inverted() @propertyGet `inverted` property. Returns: Whether tabs use inverted layout.
void inverted(bool propval) @propertySet `inverted` property. Params: propval = Whether tabs use inverted layout.
bool isOverflowing() @propertyGet `isOverflowing` property. Returns: Whether the tab bar is overflowing.
gtk.widget.Widget startActionWidget() @propertyGet `startActionWidget` property. Returns: The widget shown before the tabs.
void startActionWidget(gtk.widget.Widget propval) @propertySet `startActionWidget` property. Params: propval = The widget shown before the tabs.
bool tabsRevealed() @propertyGet `tabsRevealed` property. Returns: Whether the tabs are currently revealed.
adw.tab_view.TabView view() @propertyGet `view` property. Returns: The tab view the tab bar controls.
void view(adw.tab_view.TabView propval) @propertySet `view` property. Params: propval = The tab view the tab bar controls.
bool getAutohide()Gets whether the tabs automatically hide. Returns: whether the tabs automatically hide
gtk.widget.Widget getEndActionWidget()Gets the widget shown after the tabs. Returns: the widget shown after the tabs
bool getExpandTabs()Gets whether tabs expand to full width. Returns: whether tabs expand to full width.
gdk.types.DragAction getExtraDragPreferredAction()Gets the current action during a drop on the extradroptarget. Returns: the drag action of the current drop.
bool getExtraDragPreload()Gets whether drop data should be preloaded on hover. Returns: whether drop data should be preloaded on hover
bool getInverted()Gets whether tabs use inverted layout. Returns: whether tabs use inverted layout
bool getIsOverflowing()Gets whether self is overflowing.
gtk.widget.Widget getStartActionWidget()Gets the widget shown before the tabs. Returns: the widget shown before the tabs
bool getTabsRevealed()Gets whether the tabs are currently revealed.
adw.tab_view.TabView getView()Gets the tab view self controls. Returns: the view self controls
void setAutohide(bool autohide)Sets whether the tabs automatically hide.
void setEndActionWidget(gtk.widget.Widget widget = null)Sets the widget to show after the tabs.
void setExpandTabs(bool expandTabs)Sets whether tabs expand to full width.
void setExtraDragPreload(bool preload)Sets whether drop data should be preloaded on hover.
void setInverted(bool inverted)Sets whether tabs tabs use inverted layout.
void setStartActionWidget(gtk.widget.Widget widget = null)Sets the widget to show before the tabs.
void setView(adw.tab_view.TabView view = null)Sets the tab view self controls.
void setupExtraDropTarget(gdk.types.DragAction actions, gobject.types.GType[] types = null)Sets the supported types for this drop target.
gulong connectExtraDragDrop(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : adw.tab_page.TabPage))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gobject.value.Value))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : adw.tab_bar.TabBar))) && Parameters!T.length < 4)Connect to `ExtraDragDrop` signal.
gulong connectExtraDragValue(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == gdk.types.DragAction) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : adw.tab_page.TabPage))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gobject.value.Value))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : adw.tab_bar.TabBar))) && Parameters!T.length < 4)Connect to `ExtraDragValue` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [adw.tabbar.TabBar]. Returns: the newly created [adw.tabbar.TabBar]
Methods
T autohide(bool propval)Set `autohide` property. Params: propval = Whether the tabs automatically hide.
T endActionWidget(gtk.widget.Widget propval)Set `endActionWidget` property. Params: propval = The widget shown after the tabs. Returns: Builder instance for fluent chaining
T expandTabs(bool propval)Set `expandTabs` property. Params: propval = Whether tabs expand to full width.
T extraDragPreload(bool propval)Set `extraDragPreload` property. Params: propval = Whether the drop data should be preloaded on hover.
T inverted(bool propval)Set `inverted` property. Params: propval = Whether tabs use inverted layout.
T startActionWidget(gtk.widget.Widget propval)Set `startActionWidget` property. Params: propval = The widget shown before the tabs. Returns: Builder instance for fluent chaining
T view(adw.tab_view.TabView propval)Set `view` property. Params: propval = The tab view the tab bar controls. Returns: Builder instance for fluent chaining

Fluent builder for [adw.tab_bar.TabBar]

Methods