adw.action_row
Module for [ActionRow] class
Types 3
A [gtk.list_box_row.ListBoxRow] used to present actions.
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.
ActionRowGidBuilder builder()Get builder for [adw.action_row.ActionRow] Returns: New builder objectgtk.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.void iconName(string propval) @propertySet `iconName` property. Params: propval = The icon name 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 selfstring getIconName()Gets the icon name for self. Returns: the icon name for selfstring getSubtitle()Gets the subtitle for self. Returns: the subtitle for selfint 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 ellipsizedbool getSubtitleSelectable()Gets whether the user can copy the subtitle from the label Returns: whether the user can copy the subtitle from the labelint 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 ellipsizedvoid 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 labelvoid 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.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 chainingT 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.