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 _getGType() static nothrow
GType _gType() @property nothrow
ActionRow self() nothrowReturns `this`, for use in `with` statements.
ActionRowGidBuilder builder() static nothrowGet builder for [adw.action_row.ActionRow] Returns: New builder object
gtk.widget.Widget activatableWidget() @property nothrowGet `activatableWidget` property. Returns: The widget to activate when the row is activated.
void activatableWidget(gtk.widget.Widget propval) @property nothrowSet `activatableWidget` property. Params: propval = The widget to activate when the row is activated.
string iconName() @property nothrowGet `iconName` property. Returns: The icon name for this row.
void iconName(string propval) @property nothrowSet `iconName` property. Params: propval = The icon name for this row.
string subtitle() @property nothrowGet `subtitle` property. Returns: The subtitle for this row.
void subtitle(string propval) @property nothrowSet `subtitle` property. Params: propval = The subtitle for this row.
int subtitleLines() @property nothrowGet `subtitleLines` property. Returns: The number of lines at the end of which the subtitle label will be ellipsized.
void subtitleLines(int propval) @property nothrowSet `subtitleLines` property. Params: propval = The number of lines at the end of which the subtitle label will be ellipsized.
bool subtitleSelectable() @property nothrowGet `subtitleSelectable` property. Returns: Whether the user can copy the subtitle from the label.
void subtitleSelectable(bool propval) @property nothrowSet `subtitleSelectable` property. Params: propval = Whether the user can copy the subtitle from the label.
int titleLines() @property nothrowGet `titleLines` property. Returns: The number of lines at the end of which the title label will be ellipsized.
void titleLines(int propval) @property nothrowSet `titleLines` property. Params: propval = The number of lines at the end of which the title label will be ellipsized.
void activate() nothrowActivates self.
void addPrefix(gtk.widget.Widget widget) nothrowAdds a prefix widget to self.
void addSuffix(gtk.widget.Widget widget) nothrowAdds a suffix widget to self.
gtk.widget.Widget getActivatableWidget() nothrowGets the widget activated when self is activated. Returns: the activatable widget for self
string getIconName() nothrowGets the icon name for self. Returns: the icon name for self
string getSubtitle() nothrowGets the subtitle for self. Returns: the subtitle for self
int getSubtitleLines() nothrowGets 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() nothrowGets whether the user can copy the subtitle from the label Returns: whether the user can copy the subtitle from the label
int getTitleLines() nothrowGets 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) nothrowRemoves a child from self.
void setActivatableWidget(gtk.widget.Widget widget = null) nothrowSets the widget to activate when self is activated.
void setIconName(string iconName = null) nothrowSets the icon name for self.
void setSubtitle(string subtitle) nothrowSets the subtitle for self.
void setSubtitleLines(int subtitleLines) nothrowSets the number of lines at the end of which the subtitle label will be ellipsized.
void setSubtitleSelectable(bool subtitleSelectable) nothrowSets whether the user can copy the subtitle from the label
void setTitleLines(int titleLines) nothrowSets 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) nothrowConnect to `Activated` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [adw.action_row.ActionRow]. Returns: the newly created [adw.action_row.ActionRow]

Fluent builder implementation template for adw.action_row.ActionRow

Methods
T activatableWidget(gtk.widget.Widget propval) nothrowSet `activatableWidget` property. Params: propval = The widget to activate when the row is activated.
T iconName(string propval) nothrowSet `iconName` property. Params: propval = The icon name for this row. Returns: Builder instance for fluent chaining
T subtitle(string propval) nothrowSet `subtitle` property. Params: propval = The subtitle for this row.
T subtitleLines(int propval) nothrowSet `subtitleLines` property. Params: propval = The number of lines at the end of which the subtitle label will be ellipsized.
T subtitleSelectable(bool propval) nothrowSet `subtitleSelectable` property. Params: propval = Whether the user can copy the subtitle from the label.
T titleLines(int propval) nothrowSet `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
ActionRow build() nothrowCreate object from builder. Returns: New object