adw.expander_row
Module for [ExpanderRow] class
Types 3
A gtk.list_box_row.ListBoxRow used to reveal widgets.
The adw.expander_row.ExpanderRow 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 adw.expander_row.ExpanderRow implementation of the gtk.buildable.Buildable interface supports adding a child as an suffix widget by specifying “suffix” as the “type” attribute of a <child> element.
It also supports adding it as a prefix widget by specifying “prefix” as the “type” attribute of a <child> element.
CSS nodes
adw.expander_row.ExpanderRow 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.
ExpanderRowGidBuilder builder() static nothrowGet builder for [adw.expander_row.ExpanderRow] Returns: New builder objectbool enableExpansion() @property nothrowGet `enableExpansion` property. Returns: Whether expansion is enabled.void enableExpansion(bool propval) @property nothrowSet `enableExpansion` property. Params: propval = Whether expansion is enabled.void expanded(bool propval) @property nothrowSet `expanded` property. Params: propval = Whether the row is expanded.void iconName(string propval) @property nothrowSet `iconName` property. Params: propval = The icon name for this row.bool showEnableSwitch() @property nothrowGet `showEnableSwitch` property. Returns: Whether the switch enabling the expansion is visible.void showEnableSwitch(bool propval) @property nothrowSet `showEnableSwitch` property. Params: propval = Whether the switch enabling the expansion is visible.void subtitle(string propval) @property nothrowSet `subtitle` property. Params: propval = The subtitle for this row.int subtitleLines() @property nothrowGet `subtitleLines` property. Returns: The number of lines at the end of which the subtitle label will be ellipsized.void subtitleLines(int propval) @property nothrowSet `subtitleLines` property. Params: propval = The number of lines at the end of which the subtitle label will be ellipsized.int titleLines() @property nothrowGet `titleLines` property. Returns: The number of lines at the end of which the title label will be ellipsized.void titleLines(int propval) @property nothrowSet `titleLines` property. Params: propval = The number of lines at the end of which the title label will be ellipsized.bool getEnableExpansion() nothrowGets whether the expansion of self is enabled. Returns: whether the expansion of self is enabled.bool getShowEnableSwitch() nothrowGets whether the switch enabling the expansion of self is visible. Returns: whether the switch enabling the expansion is visibleint getSubtitleLines() nothrowGets the number of lines at the end of which the subtitle label will be ellipsized. Returns: the number of lines at the end of which the subtitle label will be ellipsizedint getTitleLines() nothrowGets the number of lines at the end of which the title label will be ellipsized. Returns: the number of lines at the end of which the title label will be ellipsizedvoid setShowEnableSwitch(bool showEnableSwitch) nothrowSets whether the switch enabling the expansion of self is visible.void setSubtitleLines(int subtitleLines) nothrowSets the number of lines at the end of which the subtitle label will be ellipsized.void setTitleLines(int titleLines) nothrowSets the number of lines at the end of which the title label will be ellipsized.Fluent builder implementation template for adw.expander_row.ExpanderRow
T enableExpansion(bool propval) nothrowSet `enableExpansion` property. Params: propval = Whether expansion is enabled. Returns: Builder instance for fluent chainingT expanded(bool propval) nothrowSet `expanded` property. Params: propval = Whether the row is expanded. Returns: Builder instance for fluent chainingT iconName(string propval) nothrowSet `iconName` property. Params: propval = The icon name for this row. Returns: Builder instance for fluent chainingT showEnableSwitch(bool propval) nothrowSet `showEnableSwitch` property. Params: propval = Whether the switch enabling the expansion is visible. Returns: Builder instance for fluent chainingT subtitle(string propval) nothrowSet `subtitle` property. Params: propval = The subtitle for this row.T subtitleLines(int propval) nothrowSet `subtitleLines` property. Params: propval = The number of lines at the end of which the subtitle label will be ellipsized.T titleLines(int propval) nothrowSet `titleLines` property. Params: propval = The number of lines at the end of which the title label will be ellipsized.Fluent builder for adw.expander_row.ExpanderRow