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.
Available since: | 1.0 |
Ancestors
- AdwPreferencesRow
- GtkListBoxRow
- GtkWidget
- GInitiallyUnowned
- GObject
Instance methods
adw_action_row_get_activatable_widget
Gets the widget activated when self
is activated.
Available since: 1.0
adw_action_row_get_subtitle_lines
Gets the number of lines at the end of which the subtitle label will be ellipsized.
Available since: 1.0
adw_action_row_get_title_lines
Gets the number of lines at the end of which the title label will be ellipsized.
Available since: 1.0
adw_action_row_set_activatable_widget
Sets the widget to activate when self
is activated.
Available since: 1.0
adw_action_row_set_subtitle_lines
Sets the number of lines at the end of which the subtitle label will be ellipsized.
Available since: 1.0
adw_action_row_set_title_lines
Sets the number of lines at the end of which the title label will be ellipsized.
Available since: 1.0
Methods inherited from AdwPreferencesRow (6)
adw_preferences_row_get_title
Gets the title of the preference represented by self
.
Available since: 1.0
adw_preferences_row_get_title_selectable
Gets whether the user can copy the title from the label.
Available since: 1.0
adw_preferences_row_get_use_underline
Gets whether an embedded underline in the title indicates a mnemonic.
Available since: 1.0
adw_preferences_row_set_title
Sets the title of the preference represented by self
.
Available since: 1.0
adw_preferences_row_set_title_selectable
Sets whether the user can copy the title from the label.
Available since: 1.0
adw_preferences_row_set_use_underline
Sets whether an embedded underline in the title indicates a mnemonic.
Available since: 1.0
Properties
Adw.ActionRow:activatable-widget
The widget to activate when the row is activated.
Available since: 1.0
Adw.ActionRow:subtitle-lines
The number of lines at the end of which the subtitle label will be ellipsized.
Available since: 1.0
Adw.ActionRow:title-lines
The number of lines at the end of which the title label will be ellipsized.
Available since: 1.0
Properties inherited from AdwPreferencesRow (3)
Adw.PreferencesRow:title
The title of the preference represented by this row.
Available since: 1.0
Adw.PreferencesRow:title-selectable
Whether the user can copy the title from the label.
Available since: 1.0
Adw.PreferencesRow:use-underline
Whether an embedded underline in the title indicates a mnemonic.
Available since: 1.0
Signals
Adw.ActionRow::activated
This signal is emitted after the row has been activated.
Available since: 1.0
Class structure
struct AdwActionRowClass {
AdwPreferencesRowClass parent_class;
void (* activate) (
AdwActionRow* self
);
}
Class members
parent_class |
|
The parent class. |
|
activate |
|
No description available. |