adw.expander_row

Module for [ExpanderRow] class

Types 3

A gtk.list_box_row.ListBoxRow used to reveal widgets.

expander-row

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.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ExpanderRow self() nothrowReturns `this`, for use in `with` statements.
ExpanderRowGidBuilder builder() static nothrowGet builder for [adw.expander_row.ExpanderRow] Returns: New builder object
bool enableExpansion() @property nothrowGet `enableExpansion` property. Returns: Whether expansion is enabled.
void enableExpansion(bool propval) @property nothrowSet `enableExpansion` property. Params: propval = Whether expansion is enabled.
bool expanded() @property nothrowGet `expanded` property. Returns: Whether the row is expanded.
void expanded(bool propval) @property nothrowSet `expanded` property. Params: propval = Whether the row is expanded.
string iconName() @property nothrowGet `iconName` property. Returns: The icon name for this row.
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.
string subtitle() @property nothrowGet `subtitle` property. Returns: The subtitle for this row.
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.
void addAction(gtk.widget.Widget widget) nothrowAdds an action widget to self.
void addPrefix(gtk.widget.Widget widget) nothrowAdds a prefix widget to self.
void addRow(gtk.widget.Widget child) nothrowAdds a widget to self.
void addSuffix(gtk.widget.Widget widget) nothrowAdds an suffix widget to self.
bool getEnableExpansion() nothrowGets whether the expansion of self is enabled. Returns: whether the expansion of self is enabled.
bool getExpanded() nothrowGets whether self is expanded. Returns: whether self is expanded
string getIconName() nothrowGets the icon name for self. Returns: the icon name for self
bool getShowEnableSwitch() nothrowGets whether the switch enabling the expansion of self is visible. Returns: whether the switch enabling the expansion is visible
string getSubtitle() nothrowGets the subtitle for self. Returns: the subtitle for self
int 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 ellipsized
int 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 ellipsized
void remove(gtk.widget.Widget child) nothrowRemoves a child from self.
void setEnableExpansion(bool enableExpansion) nothrowSets whether the expansion of self is enabled.
void setExpanded(bool expanded) nothrowSets whether self is expanded.
void setIconName(string iconName = null) nothrowSets the icon name for self.
void setShowEnableSwitch(bool showEnableSwitch) nothrowSets whether the switch enabling the expansion of self is visible.
void setSubtitle(string subtitle) nothrowSets the subtitle for self.
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.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [adw.expander_row.ExpanderRow]. Returns: the newly created [adw.expander_row.ExpanderRow]

Fluent builder implementation template for adw.expander_row.ExpanderRow

Methods
T enableExpansion(bool propval) nothrowSet `enableExpansion` property. Params: propval = Whether expansion is enabled. Returns: Builder instance for fluent chaining
T expanded(bool propval) nothrowSet `expanded` property. Params: propval = Whether the row is expanded. Returns: Builder instance for fluent chaining
T iconName(string propval) nothrowSet `iconName` property. Params: propval = The icon name for this row. Returns: Builder instance for fluent chaining
T showEnableSwitch(bool propval) nothrowSet `showEnableSwitch` property. Params: propval = Whether the switch enabling the expansion is visible. Returns: Builder instance for fluent chaining
T 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

Methods
ExpanderRow build() nothrowCreate object from builder. Returns: New object