ActionRow
Object Hierarchy:
Adw.ActionRow
Adw.ActionRow
Adw.ActionRow
Adw.PreferencesRow
Adw.PreferencesRow
Adw.PreferencesRow->Adw.ActionRow
Gtk.ListBoxRow
Gtk.ListBoxRow
Gtk.ListBoxRow->Adw.PreferencesRow
Gtk.Widget
Gtk.Widget
Gtk.Widget->Gtk.ListBoxRow
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Gtk.Accessible
Gtk.Accessible
Gtk.Accessible->Adw.ActionRow
Gtk.Accessible->Adw.PreferencesRow
Gtk.Accessible->Gtk.ListBoxRow
Gtk.Accessible->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Adw.ActionRow
Gtk.Buildable->Adw.PreferencesRow
Gtk.Buildable->Gtk.ListBoxRow
Gtk.Buildable->Gtk.Widget
Gtk.ConstraintTarget
Gtk.ConstraintTarget
Gtk.ConstraintTarget->Adw.ActionRow
Gtk.ConstraintTarget->Adw.PreferencesRow
Gtk.ConstraintTarget->Gtk.ListBoxRow
Gtk.ConstraintTarget->Gtk.Widget
Gtk.Actionable
Gtk.Actionable
Gtk.Actionable->Adw.ActionRow
Gtk.Actionable->Adw.PreferencesRow
Gtk.Actionable->Gtk.ListBoxRow
Description:
[
CCode ( type_id =
"adw_action_row_get_type ()" ) ]
[
Version ( since =
"1.0" ) ]
public class ActionRow :
PreferencesRow ,
Accessible ,
Actionable ,
Buildable ,
ConstraintTarget
A [class@Gtk.
ListBoxRow] used to present actions.
<picture> <source srcset="action-row-dark.png" media="(prefers-color-scheme: dark)"> <img src="action-row.png"
alt="action-row"> </picture>
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 [[email protected] ] 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
`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.
Content:
Properties:
public Widget activatable_widget { get ; set ; }
The widget to activate when the row is activated.
public string icon_name { get ; set ; }
The icon name for this row.
public string subtitle { get ; set ; }
The subtitle for this row.
public int subtitle_lines { get ; set ; }
The number of lines at the end of which the subtitle label will be
ellipsized.
public int title_lines { get ; set ; }
The number of lines at the end of which the title label will be
ellipsized.
Creation methods:
Methods:
public virtual void activate ()
Activates this .
public void add_prefix (Widget widget)
Adds a prefix widget to this .
public void add_suffix (Widget widget)
Adds a suffix widget to this .
public unowned Widget ? get_activatable_widget ()
Gets the widget activated when this
is activated.
public unowned string ? get_icon_name ()
Gets the icon name for this .
public unowned string ? get_subtitle ()
Gets the subtitle for this .
public int get_subtitle_lines ()
Gets the number of lines at the end of which the subtitle label will
be ellipsized.
public int get_title_lines ()
Gets the number of lines at the end of which the title label will be
ellipsized.
public void remove (Widget widget)
Removes a child from this .
public void set_activatable_widget (Widget ? widget)
Sets the widget to activate when this
is activated.
public void set_icon_name (string ? icon_name)
Sets the icon name for this .
public void set_subtitle (string subtitle)
Sets the subtitle for this .
public void set_subtitle_lines (int subtitle_lines)
Sets the number of lines at the end of which the subtitle label will
be ellipsized.
public void set_title_lines (int title_lines)
Sets the number of lines at the end of which the title label will be
ellipsized.
Signals:
Inherited Members:
All known members inherited from class Adw.PreferencesRow
All known members inherited from class Gtk.ListBoxRow
activatable
activate
changed
child
get_activatable
get_child
get_header
get_index
get_selectable
is_selected
selectable
set_activatable
set_child
set_header
set_selectable
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gtk.Accessible
accessible_role
get_accessible_role
reset_property
reset_relation
reset_state
update_property
update_property_value
update_relation
update_relation_value
update_state
update_state_value
All known members inherited from interface Gtk.Actionable
action_name
action_target
get_action_name
get_action_target_value
set_action_name
set_action_target
set_action_target_value
set_detailed_action_name
All known members inherited from interface Gtk.Buildable
add_child
custom_finished
custom_tag_end
custom_tag_start
get_buildable_id
get_id
get_internal_child
parser_finished
set_buildable_property
set_id