TabBar

class TabBar(pointer: <Error class: unknown class><<Error class: unknown class>>)

A tab bar for class@TabView.

tab-bar

The AdwTabBar widget is a tab bar that can be used with conjunction with AdwTabView. It is typically used as a top bar within class@ToolbarView.

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.

Style classes

By default AdwTabBar look like a part of an AdwHeaderBar and is intended to be used directly attached to one or used as a class@ToolbarView toolbar. The style-classes.html#inline style class removes its background, so that it can be used in different contexts instead.

tab-bar-inline

Skipped during bindings generation

  • parameter types: Array parameter of type GType is not supported

Constructors

Link copied to clipboard
constructor()

Creates a new AdwTabBar.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwTabBarPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

Whether the tabs automatically hide.

Link copied to clipboard
var endActionWidget: <Error class: unknown class>?

The widget shown after the tabs.

Link copied to clipboard

Whether tabs expand to full width.

Link copied to clipboard
val extraDragPreferredAction: <Error class: unknown class>

The unique action on the current-drop of the signal@TabBar::extra-drag-drop.

Link copied to clipboard

Whether the drop data should be preloaded on hover.

Link copied to clipboard
open val gtkAccessiblePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkConstraintTargetPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

Whether tabs use inverted layout.

Link copied to clipboard

Whether the tab bar is overflowing.

Link copied to clipboard
var startActionWidget: <Error class: unknown class>?

The widget shown before the tabs.

Link copied to clipboard

Whether the tabs are currently revealed.

Link copied to clipboard

The tab view the tab bar controls.

Functions

Link copied to clipboard
fun connectExtraDragDrop(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (page: TabPage, <Error class: unknown class>) -> Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun connectExtraDragValue(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (page: TabPage, <Error class: unknown class>) -> <Error class: unknown class>): <Error class: unknown class>

This signal is emitted when the dropped content is preloaded.

Link copied to clipboard

Gets whether the tabs automatically hide.

Link copied to clipboard
fun getEndActionWidget(): <Error class: unknown class>?

Gets the widget shown after the tabs.

Link copied to clipboard

Gets whether tabs expand to full width.

Link copied to clipboard
fun getExtraDragPreferredAction(): <Error class: unknown class>

Gets the current action during a drop on the extra_drop_target.

Link copied to clipboard

Gets whether drop data should be preloaded on hover.

Link copied to clipboard

Gets whether tabs use inverted layout.

Link copied to clipboard

Gets whether @self is overflowing.

Link copied to clipboard
fun getStartActionWidget(): <Error class: unknown class>?

Gets the widget shown before the tabs.

Link copied to clipboard

Gets whether the tabs are currently revealed.

Link copied to clipboard

Gets the tab view @self controls.

Link copied to clipboard
fun setAutohide(autohide: Boolean)

Sets whether the tabs automatically hide.

Link copied to clipboard
fun setEndActionWidget(widget: <Error class: unknown class>? = null)

Sets the widget to show after the tabs.

Link copied to clipboard
fun setExpandTabs(expandTabs: Boolean)

Sets whether tabs expand to full width.

Link copied to clipboard

Sets whether drop data should be preloaded on hover.

Link copied to clipboard
fun setInverted(inverted: Boolean)

Sets whether tabs tabs use inverted layout.

Link copied to clipboard
fun setStartActionWidget(widget: <Error class: unknown class>? = null)

Sets the widget to show before the tabs.

Link copied to clipboard
fun setView(view: TabView? = null)

Sets the tab view @self controls.