adw.tab_button

Module for [TabButton] class

Types 3

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

tab-button

[adw.tab_button.TabButton] is a button that displays the number of pages in a given [adw.tab_view.TabView], 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

[adw.tab_button.TabButton] has a main CSS node with name tabbutton.

Accessibility

[adw.tab_button.TabButton] uses the [gtk.types.AccessibleRole.Button] role.

Methods
GType _gType() @property
TabButton self()Returns `this`, for use in `with` statements.
TabButtonGidBuilder builder()Get builder for [adw.tab_button.TabButton] Returns: New builder object
adw.tab_view.TabView view() @propertyGet `view` property. Returns: The view the tab button displays.
void view(adw.tab_view.TabView propval) @propertySet `view` property. Params: propval = The view the tab button displays.
adw.tab_view.TabView getView()Gets the tab view self displays. Returns: the tab view
void setView(adw.tab_view.TabView view = null)Sets the tab view to display.
gulong connectActivate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : adw.tab_button.TabButton))) && Parameters!T.length < 2)Connect to `Activate` signal.
gulong connectClicked(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : adw.tab_button.TabButton))) && Parameters!T.length < 2)Connect to `Clicked` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [adw.tabbutton.TabButton]. Returns: the newly created [adw.tabbutton.TabButton]
Methods
T view(adw.tab_view.TabView propval)Set `view` property. Params: propval = The view the tab button displays. Returns: Builder instance for fluent chaining

Fluent builder for [adw.tab_button.TabButton]

Methods