adw.tab_button

Module for [TabButton] class

Types 3

A button that displays the number of adw.tab_view.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 adw.tab_overview.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 _getGType() static nothrow
GType _gType() @property nothrow
TabButton self() nothrowReturns `this`, for use in `with` statements.
TabButtonGidBuilder builder() static nothrowGet builder for [adw.tab_button.TabButton] Returns: New builder object
adw.tab_view.TabView view() @property nothrowGet `view` property. Returns: The view the tab button displays.
void view(adw.tab_view.TabView propval) @property nothrowSet `view` property. Params: propval = The view the tab button displays.
adw.tab_view.TabView getView() nothrowGets the tab view self displays. Returns: the tab view
void setView(adw.tab_view.TabView view = null) nothrowSets 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) nothrowConnect 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) nothrowConnect to `Clicked` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [adw.tab_button.TabButton]. Returns: the newly created [adw.tab_button.TabButton]

Fluent builder implementation template for adw.tab_button.TabButton

Methods
T view(adw.tab_view.TabView propval) nothrowSet `view` property. Params: propval = The view the tab button displays. Returns: Builder instance for fluent chaining

Fluent builder for adw.tab_button.TabButton

Methods
TabButton build() nothrowCreate object from builder. Returns: New object