1.28 <AdwExpanderRow>

Class: <AdwExpanderRow>

It derives from <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 <child> element.

It also supports adding it as a prefix widget by specifying “prefix” as the “type” attribute of a <child> 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.

Fields

parent-instance

Properties

Property: expander-row:enable-expansion self

Whether expansion is enabled.

Its value is a boolean.

Set it with (set! (expander-row:enable-expansion self) value).

Property: expander-row:expanded self

Whether the row is expanded.

Its value is a boolean.

Set it with (set! (expander-row:expanded self) value).

Property: expander-row:icon-name self

The icon name for this row.

Its value is a string, or #f.

Set it with (set! (expander-row:icon-name self) value).

Property: expander-row:show-enable-switch self

Whether the switch enabling the expansion is visible.

Its value is a boolean.

Set it with (set! (expander-row:show-enable-switch self) value).

Property: expander-row:subtitle self

The subtitle for this row.

The subtitle is interpreted as Pango markup unless PreferencesRow:use-markup is set to FALSE.

Its value is a string, or #f.

Set it with (set! (expander-row:subtitle self) value).

Property: expander-row:subtitle-lines self

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

If the value is 0, the number of lines won’t be limited.

Its value is a 32-bit integer.

Set it with (set! (expander-row:subtitle-lines self) value).

Property: expander-row:title-lines self

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

If the value is 0, the number of lines won’t be limited.

Its value is a 32-bit integer.

Set it with (set! (expander-row:title-lines self) value).

Procedures

Method: expander-row:add-action self widget
Method: add-action self widget

Adds an action widget to self.

self

Passed: a <AdwExpanderRow>.

an expander row

widget

Passed: a <GtkWidget>.

a widget

Method: expander-row:add-prefix self widget
Method: add-prefix self widget

Adds a prefix widget to self.

self

Passed: a <AdwExpanderRow>.

an expander row

widget

Passed: a <GtkWidget>.

a widget

Method: expander-row:add-row self child
Method: add-row self child

Adds a widget to self.

The widget will appear in the expanding list below self.

self

Passed: a <AdwExpanderRow>.

an expander row

child

Passed: a <GtkWidget>.

a widget

Method: expander-row:add-suffix self widget
Method: add-suffix self widget

Adds an suffix widget to self.

self

Passed: a <AdwExpanderRow>.

an expander row

widget

Passed: a <GtkWidget>.

a widget

Method: expander-row:get-enable-expansion? self ⇒ %return
Method: get-enable-expansion? self ⇒ %return

Gets whether the expansion of self is enabled.

self

Passed: a <AdwExpanderRow>.

an expander row

%return

Returned: a boolean.

whether the expansion of self is enabled.

Method: expander-row:get-expanded? self ⇒ %return
Method: get-expanded? self ⇒ %return

Gets whether self is expanded.

self

Passed: a <AdwExpanderRow>.

an expander row

%return

Returned: a boolean.

whether self is expanded

Method: expander-row:get-icon-name self ⇒ %return
Method: get-icon-name self ⇒ %return

Gets the icon name for self.

self

Passed: a <AdwExpanderRow>.

an expander row

%return

Returned: a string, or #f.

the icon name for self

Method: expander-row:get-show-enable-switch? self ⇒ %return
Method: get-show-enable-switch? self ⇒ %return

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

self

Passed: a <AdwExpanderRow>.

an expander row

%return

Returned: a boolean.

whether the switch enabling the expansion is visible

Method: expander-row:get-subtitle self ⇒ %return
Method: get-subtitle self ⇒ %return

Gets the subtitle for self.

self

Passed: a <AdwExpanderRow>.

an expander row

%return

Returned: a string.

the subtitle for self

Method: expander-row:get-subtitle-lines self ⇒ %return
Method: get-subtitle-lines self ⇒ %return

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

self

Passed: a <AdwExpanderRow>.

an expander row

%return

Returned: a 32-bit integer.

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

Method: expander-row:get-title-lines self ⇒ %return
Method: get-title-lines self ⇒ %return

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

self

Passed: a <AdwExpanderRow>.

an expander row

%return

Returned: a 32-bit integer.

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

Procedure: expander-row:new ⇒ %return

Creates a new <AdwExpanderRow>.

%return

Returned: a <GtkWidget>.

the newly created <AdwExpanderRow>

Method: expander-row:remove self child
Method: remove self child

Removes a child from self.

self

Passed: a <AdwExpanderRow>.

an expander row

child

Passed: a <GtkWidget>.

the child to be removed

Method: expander-row:set-enable-expansion self enable-expansion
Method: set-enable-expansion self enable-expansion

Sets whether the expansion of self is enabled.

self

Passed: a <AdwExpanderRow>.

an expander row

enable-expansion

Passed: a boolean.

whether to enable the expansion

Method: expander-row:set-expanded self expanded
Method: set-expanded self expanded

Sets whether self is expanded.

self

Passed: a <AdwExpanderRow>.

an expander row

expanded

Passed: a boolean.

whether to expand the row

Method: expander-row:set-icon-name self [icon-name]
Method: set-icon-name self [icon-name]

Sets the icon name for self.

self

Passed: a <AdwExpanderRow>.

an expander row

icon-name

Passed, or left out: a string, or #f.

the icon name

Method: expander-row:set-show-enable-switch self show-enable-switch
Method: set-show-enable-switch self show-enable-switch

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

self

Passed: a <AdwExpanderRow>.

an expander row

show-enable-switch

Passed: a boolean.

whether to show the switch enabling the expansion

Method: expander-row:set-subtitle self subtitle
Method: set-subtitle self subtitle

Sets the subtitle for self.

The subtitle is interpreted as Pango markup unless PreferencesRow:use-markup is set to FALSE.

self

Passed: a <AdwExpanderRow>.

an expander row

subtitle

Passed: a string.

the subtitle

Method: expander-row:set-subtitle-lines self subtitle-lines
Method: set-subtitle-lines self subtitle-lines

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

If the value is 0, the number of lines won’t be limited.

self

Passed: a <AdwExpanderRow>.

an expander row

subtitle-lines

Passed: a 32-bit integer.

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

Method: expander-row:set-title-lines self title-lines
Method: set-title-lines self title-lines

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

If the value is 0, the number of lines won’t be limited.

self

Passed: a <AdwExpanderRow>.

an expander row

title-lines

Passed: a 32-bit integer.

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