adw.action_row

Module for [ActionRow] class

Types 3

A [gtk.list_box_row.ListBoxRow] used to present actions.

action-row

The [adw.action_row.ActionRow] widget can have a title, a subtitle and an icon. The row can receive additional widgets at its end, or prefix widgets at its start.

It is convenient to present a preference and its related actions.

[adw.action_row.ActionRow] is unactivatable by default, giving it an activatable widget will automatically make it activatable, but unsetting it won't change the row's activatability.

AdwActionRow as GtkBuildable

The [adw.action_row.ActionRow] implementation of the [gtk.buildable.Buildable] interface supports adding a child at its end by specifying “suffix” or omitting the “type” attribute of a <child> element.

It also supports adding a child as a prefix widget by specifying “prefix” as the “type” attribute of a <child> element.

CSS nodes

[adw.action_row.ActionRow] has a main CSS node with name row.

It contains the subnode box.header for its main horizontal box, and box.title for the vertical box containing the title and subtitle labels.

It contains subnodes label.title and label.subtitle representing respectively the title label and subtitle label.

[adw.action_row.ActionRow] can use the

.property style class to emphasize

the row subtitle instead of the row title, which is useful for displaying read-only properties.

Methods
GType _gType() @property
ActionRow self()Returns `this`, for use in `with` statements.
ActionRowGidBuilder builder()Get builder for [adw.action_row.ActionRow] Returns: New builder object
gtk.widget.Widget activatableWidget() @propertyGet `activatableWidget` property. Returns: The widget to activate when the row is activated.
void activatableWidget(gtk.widget.Widget propval) @propertySet `activatableWidget` property. Params: propval = The widget to activate when the row is activated.
string iconName() @propertyGet `iconName` property. Returns: The icon name for this row.
void iconName(string propval) @propertySet `iconName` property. Params: propval = The icon name for this row.
string subtitle() @propertyGet `subtitle` property. Returns: The subtitle for this row.
void subtitle(string propval) @propertySet `subtitle` property. Params: propval = The subtitle for this row.
int subtitleLines() @propertyGet `subtitleLines` property. Returns: The number of lines at the end of which the subtitle label will be ellipsized.
void subtitleLines(int propval) @propertySet `subtitleLines` property. Params: propval = The number of lines at the end of which the subtitle label will be ellipsized.
bool subtitleSelectable() @propertyGet `subtitleSelectable` property. Returns: Whether the user can copy the subtitle from the label.
void subtitleSelectable(bool propval) @propertySet `subtitleSelectable` property. Params: propval = Whether the user can copy the subtitle from the label.
int titleLines() @propertyGet `titleLines` property. Returns: The number of lines at the end of which the title label will be ellipsized.
void titleLines(int propval) @propertySet `titleLines` property. Params: propval = The number of lines at the end of which the title label will be ellipsized.
void activate()Activates self.
void addPrefix(gtk.widget.Widget widget)Adds a prefix widget to self.
void addSuffix(gtk.widget.Widget widget)Adds a suffix widget to self.
gtk.widget.Widget getActivatableWidget()Gets the widget activated when self is activated. Returns: the activatable widget for self
string getIconName()Gets the icon name for self. Returns: the icon name for self
string getSubtitle()Gets the subtitle for self. Returns: the subtitle for self
int getSubtitleLines()Gets the number of lines at the end of which the subtitle label will be ellipsized. Returns: the number of lines at the end of which the subtitle label will be ellipsized
bool getSubtitleSelectable()Gets whether the user can copy the subtitle from the label Returns: whether the user can copy the subtitle from the label
int getTitleLines()Gets the number of lines at the end of which the title label will be ellipsized. Returns: the number of lines at the end of which the title label will be ellipsized
void remove(gtk.widget.Widget widget)Removes a child from self.
void setActivatableWidget(gtk.widget.Widget widget = null)Sets the widget to activate when self is activated.
void setIconName(string iconName = null)Sets the icon name for self.
void setSubtitle(string subtitle)Sets the subtitle for self.
void setSubtitleLines(int subtitleLines)Sets the number of lines at the end of which the subtitle label will be ellipsized.
void setSubtitleSelectable(bool subtitleSelectable)Sets whether the user can copy the subtitle from the label
void setTitleLines(int titleLines)Sets the number of lines at the end of which the title label will be ellipsized.
gulong connectActivated(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.action_row.ActionRow))) && Parameters!T.length < 2)Connect to `Activated` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [adw.actionrow.ActionRow]. Returns: the newly created [adw.actionrow.ActionRow]
Methods
T activatableWidget(gtk.widget.Widget propval)Set `activatableWidget` property. Params: propval = The widget to activate when the row is activated.
T iconName(string propval)Set `iconName` property. Params: propval = The icon name for this row. Returns: Builder instance for fluent chaining
T subtitle(string propval)Set `subtitle` property. Params: propval = The subtitle for this row.
T subtitleLines(int propval)Set `subtitleLines` property. Params: propval = The number of lines at the end of which the subtitle label will be ellipsized.
T subtitleSelectable(bool propval)Set `subtitleSelectable` property. Params: propval = Whether the user can copy the subtitle from the label.
T titleLines(int propval)Set `titleLines` property. Params: propval = The number of lines at the end of which the title label will be ellipsized.

Fluent builder for [adw.action_row.ActionRow]

Methods