Class
AdwExpanderRow
Description [src]
class Adw.ExpanderRow : Adw.PreferencesRow {
parent_instance: AdwPreferencesRow
}
A GtkListBoxRow
used to reveal widgets.
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
It also supports adding it as a prefix widget by specifying “prefix” as the
“type” attribute of a
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.
Ancestors
- AdwPreferencesRow
- GtkListBoxRow
- GtkWidget
- GInitiallyUnowned
- GObject
Constructors
adw_expander_row_new
Creates a new AdwExpanderRow
.
Instance methods
adw_expander_row_add_prefix
Adds a prefix widget to self
.
adw_expander_row_add_row
Adds a widget to self
.
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_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.
Available 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.
Available since: 1.3
adw_expander_row_remove
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_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.
Available 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.
Available since: 1.3
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.ExpanderRow:enable-expansion
Whether expansion is enabled.
Adw.ExpanderRow:expanded
Whether the row is expanded.
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.
Available since: 1.3
Adw.ExpanderRow:title-lines
The number of lines at the end of which the title label will be ellipsized.
Available since: 1.3
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.