TabButton

class TabButton(val adwTabButtonPointer: <Error class: unknown class><<Error class: unknown class>>)(source)

A button that displays the number of class@TabView pages.

tab-button

AdwTabButton is a button that displays the number of pages in a given AdwTabView, as well as whether one of the inactive pages needs attention.

It's intended to be used as a visible indicator when there's no visible tab bar, typically opening an class@TabOverview on click, e.g. via the overview.open action name:

<object class="AdwTabButton">
  <property name="view">view</property>
  <property name="action-name">overview.open</property>
</object>

CSS nodes

AdwTabButton has a main CSS node with name tabbutton.

Accessibility

AdwTabButton uses the GTK_ACCESSIBLE_ROLE_BUTTON role.

Since

1.3

Constructors

Link copied to clipboard
constructor()

Creates a new AdwTabButton.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwTabButtonPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkAccessiblePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkActionablePointer: <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

The view the tab button displays.

Functions

Link copied to clipboard

Emits the "activate" signal. See onActivate.

Link copied to clipboard

Emits the "clicked" signal. See onClicked.

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

Emitted to animate press then release.

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

Emitted when the button has been activated (pressed and released).