Class

AdwExpanderRow

[]

Description [src]

class Adw.ExpanderRow : Adw.PreferencesRow
  implements Gtk.Accessible, Gtk.Actionable, Gtk.Buildable, Gtk.ConstraintTarget {
  /* No available fields */
}

A GtkListBoxRow used to reveal widgets.

expander-row

The AdwExpanderRow widget allows the user to reveal or hide widgets below it. It also allows the user to enable the expansion of the row, allowing to disable all that the row contains.

AdwExpanderRow as GtkBuildable

The AdwExpanderRow implementation of the GtkBuildable interface supports adding a child as an suffix widget by specifying “suffix” as the “type” attribute of a element.

It also supports adding it as a prefix widget by specifying “prefix” as the “type” attribute of a element.

CSS nodes

AdwExpanderRow has a main CSS node with name row and the .expander style class. It has the .empty style class when it contains no children.

It contains the subnodes row.header for its main embedded row, list.nested for the list it can expand, and image.expander-row-arrow for its arrow.

Style classes

AdwExpanderRow can use the . style class to emphasize the row subtitle instead of the row title, which is useful for displaying read-only properties.

When used together with the .monospace style class, only the subtitle becomes monospace, not the title or any extra widgets.

[]

Hierarchy

hierarchy this AdwExpanderRow implements_0 GtkAccessible this--implements_0 implements_1 GtkActionable this--implements_1 implements_2 GtkBuildable this--implements_2 implements_3 GtkConstraintTarget this--implements_3 ancestor_0 AdwPreferencesRow ancestor_0--this ancestor_1 GtkListBoxRow ancestor_1--ancestor_0 ancestor_2 GtkWidget ancestor_2--ancestor_1 ancestor_3 GInitiallyUnowned ancestor_3--ancestor_2 ancestor_4 GObject ancestor_4--ancestor_3
[]

Constructors

adw_expander_row_new

Creates a new AdwExpanderRow.

[]

Instance methods

adw_expander_row_add_action

Adds an action widget to self.

deprecated: 1.4 

adw_expander_row_add_prefix

Adds a prefix widget to self.

adw_expander_row_add_row

Adds a widget to self.

adw_expander_row_add_suffix

Adds an suffix widget to self.

since: 1.4

adw_expander_row_get_enable_expansion

Gets whether the expansion of self is enabled.

adw_expander_row_get_expanded

Gets whether self is expanded.

adw_expander_row_get_icon_name

Gets the icon name for self.

deprecated: 1.3 

adw_expander_row_get_show_enable_switch

Gets whether the switch enabling the expansion of self is visible.

adw_expander_row_get_subtitle

Gets the subtitle for self.

adw_expander_row_get_subtitle_lines

Gets the number of lines at the end of which the subtitle label will be ellipsized.

since: 1.3

adw_expander_row_get_title_lines

Gets the number of lines at the end of which the title label will be ellipsized.

since: 1.3

adw_expander_row_remove

Removes a child from self.

adw_expander_row_set_enable_expansion

Sets whether the expansion of self is enabled.

adw_expander_row_set_expanded

Sets whether self is expanded.

adw_expander_row_set_icon_name

Sets the icon name for self.

deprecated: 1.3 

adw_expander_row_set_show_enable_switch

Sets whether the switch enabling the expansion of self is visible.

adw_expander_row_set_subtitle

Sets the subtitle for self.

adw_expander_row_set_subtitle_lines

Sets the number of lines at the end of which the subtitle label will be ellipsized.

since: 1.3

adw_expander_row_set_title_lines

Sets the number of lines at the end of which the title label will be ellipsized.

since: 1.3

Methods inherited from AdwPreferencesRow (8)
Methods inherited from GtkListBoxRow (11)
Methods inherited from GtkWidget (164)
Methods inherited from GObject (43)
Methods inherited from GtkAccessible (20)
Methods inherited from GtkActionable (6)
Methods inherited from GtkBuildable (1)
[]

Properties

Adw.ExpanderRow:enable-expansion

Whether expansion is enabled.

Adw.ExpanderRow:expanded

Whether the row is expanded.

Adw.ExpanderRow:icon-name

The icon name for this row.

deprecated: 1.3 

Adw.ExpanderRow:show-enable-switch

Whether the switch enabling the expansion is visible.

Adw.ExpanderRow:subtitle

The subtitle for this row.

Adw.ExpanderRow:subtitle-lines

The number of lines at the end of which the subtitle label will be ellipsized.

since: 1.3

Adw.ExpanderRow:title-lines

The number of lines at the end of which the title label will be ellipsized.

since: 1.3

Properties inherited from AdwPreferencesRow (4)
Properties inherited from GtkListBoxRow (3)
Properties inherited from GtkWidget (35)
Properties inherited from GtkAccessible (1)
Properties inherited from GtkActionable (2)
[]

Signals

Signals inherited from GtkListBoxRow (1)
Signals inherited from GtkWidget (13)
Signals inherited from GObject (1)

Class structure