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.