Klasse ButtonRow

Alle implementierten Schnittstellen:
PointerInterface

public class ButtonRow extends PreferencesRow
A [class@Gtk.ListBoxRow] that looks like a button.

<picture>
<source srcset="button-rows-dark.png" media="(prefers-color-scheme: dark)">
<img src="button-rows.png" alt="button-rows">
</picture>

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 [`.suggested-action`](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.

<picture>
<source srcset="button-row-suggested-action-dark.png" media="(prefers-color-scheme: dark)">
<img src="button-row-suggested-action.png" alt="button-row-suggested-action">
</picture>

The [`.destructive-action`](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.

<picture>
<source srcset="button-row-destructive-action-dark.png" media="(prefers-color-scheme: dark)">
<img src="button-row-destructive-action.png" alt="button-row-destructive-action">
</picture>

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.ButtonRow.html

  • Felddetails

  • Konstruktordetails

    • ButtonRow

      public ButtonRow(PointerContainer pointer)
    • ButtonRow

      public ButtonRow()
      Creates a new `AdwButtonRow`.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getEndIconName

      public Str getEndIconName()
      Gets the end icon name for @self.
      Gibt zurück:
      the end icon name for @self
    • getStartIconName

      public Str getStartIconName()
      Gets the start icon name for @self.
      Gibt zurück:
      the start icon name for @self
    • setEndIconName

      public void setEndIconName(@Nullable Str icon_name)
      Sets the end icon name for @self.
      Parameter:
      icon_name - the end icon name
    • setEndIconName

      public void setEndIconName(String icon_name)
      Sets the end icon name for @self.
      Parameter:
      icon_name - the end icon name
    • setStartIconName

      public void setStartIconName(@Nullable Str icon_name)
      Sets the start icon name for @self.
      Parameter:
      icon_name - the start icon name
    • setStartIconName

      public void setStartIconName(String icon_name)
      Sets the start icon name for @self.
      Parameter:
      icon_name - the start icon name
    • onActivated

      public SignalHandler onActivated(ButtonRow.OnActivated signal)
      Connect to signal "activated".
      See ButtonRow.OnActivated.onActivated() for signal description.
      Field SIGNAL_ON_ACTIVATED contains original signal name and can be used as resource reference.
      Parameter:
      signal - callback function (lambda).
      Gibt zurück:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Setzt außer Kraft:
      asAccessible in Klasse PreferencesRow
      Gibt zurück:
      Accessible
    • asActionable

      public Actionable asActionable()
      Implements interface Actionable. Call this to get access to interface functions.
      Setzt außer Kraft:
      asActionable in Klasse PreferencesRow
      Gibt zurück:
      Actionable
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Setzt außer Kraft:
      asBuildable in Klasse PreferencesRow
      Gibt zurück:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Setzt außer Kraft:
      asConstraintTarget in Klasse PreferencesRow
      Gibt zurück:
      ConstraintTarget
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()