Class
AdwActionRow
Description [src]
class Adw.ActionRow : Adw.PreferencesRow {
parent_instance: AdwPreferencesRow
}
A GtkListBoxRow
used to present actions.
The AdwActionRow
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.
AdwActionRow
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 AdwActionRow
implementation of the GtkBuildable
interface
supports adding a child at its end by specifying “suffix” or omitting the
“type” attribute of a
It also supports adding a child as a prefix widget by specifying “prefix” as
the “type” attribute of a
CSS nodes
AdwActionRow
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.
Ancestors
- AdwPreferencesRow
- GtkListBoxRow
- GtkWidget
- GInitiallyUnowned
- GObject
Constructors
adw_action_row_new
Creates a new AdwActionRow
.
Instance methods
adw_action_row_activate
Activates self
.
adw_action_row_add_prefix
Adds a prefix widget to self
.
adw_action_row_add_suffix
Adds a suffix widget to self
.
adw_action_row_get_activatable_widget
Gets the widget activated when self
is activated.
adw_action_row_get_subtitle
Gets the subtitle for self
.
adw_action_row_get_subtitle_lines
Gets the number of lines at the end of which the subtitle label will be ellipsized.
adw_action_row_get_subtitle_selectable
Gets whether the user can copy the subtitle from the label.
Available since: 1.3
adw_action_row_get_title_lines
Gets the number of lines at the end of which the title label will be ellipsized.
adw_action_row_remove
Removes a child from self
.
adw_action_row_set_activatable_widget
Sets the widget to activate when self
is activated.
adw_action_row_set_subtitle
Sets the subtitle for self
.
adw_action_row_set_subtitle_lines
Sets the number of lines at the end of which the subtitle label will be ellipsized.
adw_action_row_set_subtitle_selectable
Sets whether the user can copy the subtitle from the label.
Available since: 1.3
adw_action_row_set_title_lines
Sets the number of lines at the end of which the title label will be ellipsized.
Methods inherited from AdwPreferencesRow (8)
adw_preferences_row_get_title
Gets the title of the preference represented by self
.
adw_preferences_row_get_title_selectable
Gets whether the user can copy the title from the label.
Available since: 1.1
adw_preferences_row_get_use_markup
Gets whether to use Pango markup for the title label.
Available since: 1.2
adw_preferences_row_get_use_underline
Gets whether an embedded underline in the title indicates a mnemonic.
adw_preferences_row_set_title
Sets the title of the preference represented by self
.
adw_preferences_row_set_title_selectable
Sets whether the user can copy the title from the label.
Available since: 1.1
adw_preferences_row_set_use_markup
Sets whether to use Pango markup for the title label.
Available since: 1.2
adw_preferences_row_set_use_underline
Sets whether an embedded underline in the title indicates a mnemonic.
Properties
Adw.ActionRow:activatable-widget
The widget to activate when the row is activated.
Adw.ActionRow:subtitle
The subtitle for this row.
Adw.ActionRow:subtitle-lines
The number of lines at the end of which the subtitle label will be ellipsized.
Adw.ActionRow:subtitle-selectable
Whether the user can copy the subtitle from the label.
Available since: 1.3
Adw.ActionRow:title-lines
The number of lines at the end of which the title label will be ellipsized.
Properties inherited from AdwPreferencesRow (4)
Adw.PreferencesRow:title
The title of the preference represented by this row.
Adw.PreferencesRow:title-selectable
Whether the user can copy the title from the label.
Available since: 1.1
Adw.PreferencesRow:use-markup
Whether to use Pango markup for the title label.
Available since: 1.2
Adw.PreferencesRow:use-underline
Whether an embedded underline in the title indicates a mnemonic.
Signals
Adw.ActionRow::activated
This signal is emitted after the row has been activated.
Class structure
struct AdwActionRowClass {
AdwPreferencesRowClass parent_class;
void (* activate) (
AdwActionRow* self
);
}
Class members
parent_class |
|
The parent class. |
|
activate |
|
No description available. |
Virtual methods
Adw.ActionRowClass.activate
Activates self
.