ButtonRow

class ButtonRow(pointer: <Error class: unknown class><<Error class: unknown class>>) : PreferencesRow

A class@Gtk.ListBoxRow that looks like a button.

button-rows

The AdwButtonRow widget has a title and two icons: before and after the title.

It is convenient for presenting actions like "Delete" at the end of a boxed list.

AdwButtonRow is always activatable.

CSS nodes

AdwButtonRow has a main CSS node with name row and the style class .button.

It contains the subnode box for its main horizontal box, which contains the nodes: image.icon.start for the start icon, label.title for the title, and image.icon.end for the end icon.

Style classes

The style-classes.html#suggested-action style class makes AdwButtonRow use accent color for its background. It should be used very sparingly to denote important buttons.

button-row-suggested-action

The style-classes.html#destructive-action style makes the row use destructive colors. It can be used to draw attention to the potentially damaging consequences of using it. This style acts as a warning to the user.

button-row-destructive-action

Since

1.6

Constructors

Link copied to clipboard
constructor()

Creates a new AdwButtonRow.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwButtonRowPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val adwPreferencesRowPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

The icon name to show after the title.

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

The icon name to show before the title.

Link copied to clipboard
open var title: String

The title of the preference represented by this row.

Link copied to clipboard

Whether the user can copy the title from the label.

Link copied to clipboard
open var useMarkup: Boolean

Whether to use Pango markup for the title label.

Link copied to clipboard

Whether an embedded underline in the title indicates a mnemonic.

Functions

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

This signal is emitted after the row has been activated.

Link copied to clipboard

Gets the end icon name for @self.

Link copied to clipboard

Gets the start icon name for @self.

Link copied to clipboard
open fun getTitle(): String

Gets the title of the preference represented by @self.

Link copied to clipboard

Gets whether the user can copy the title from the label

Link copied to clipboard
open fun getUseMarkup(): Boolean

Gets whether to use Pango markup for the title label.

Link copied to clipboard

Gets whether an embedded underline in the title indicates a mnemonic.

Link copied to clipboard
fun setEndIconName(iconName: String? = null)

Sets the end icon name for @self.

Link copied to clipboard
fun setStartIconName(iconName: String? = null)

Sets the start icon name for @self.

Link copied to clipboard
open fun setTitle(title: String)

Sets the title of the preference represented by @self.

Link copied to clipboard
open fun setTitleSelectable(titleSelectable: Boolean)

Sets whether the user can copy the title from the label

Link copied to clipboard
open fun setUseMarkup(useMarkup: Boolean)

Sets whether to use Pango markup for the title label.

Link copied to clipboard
open fun setUseUnderline(useUnderline: Boolean)

Sets whether an embedded underline in the title indicates a mnemonic.