Top |
HdyExpanderRowHdyExpanderRow — A GtkListBox row used to reveal widgets. |
gboolean | enable-expansion | Read / Write |
gboolean | expanded | Read / Write |
gchar * | icon-name | Read / Write |
gboolean | show-enable-switch | Read / Write |
gchar * | subtitle | Read / Write |
gchar * | title | Read / Write |
gboolean | use-underline | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkListBoxRow ╰── HdyPreferencesRow ╰── HdyExpanderRow
HdyExpanderRow implements AtkImplementorIface, GtkBuildable and GtkActionable.
The HdyExpanderRow 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.
HdyExpanderRow 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.
When expanded, HdyExpanderRow will add the .checked-expander-row-previous-sibling style class to its previous sibling, and remove it when retracted.
GtkWidget *
hdy_expander_row_new (void
);
Creates a new HdyExpanderRow.
Since: 0.0.6
const gchar *
hdy_expander_row_get_title (HdyExpanderRow *self
);
Gets the title for self
.
Since: 1.0
void hdy_expander_row_set_title (HdyExpanderRow *self
,const gchar *title
);
Sets the title for self
.
Since: 1.0
const gchar *
hdy_expander_row_get_subtitle (HdyExpanderRow *self
);
Gets the subtitle for self
.
Since: 1.0
void hdy_expander_row_set_subtitle (HdyExpanderRow *self
,const gchar *subtitle
);
Sets the subtitle for self
.
Since: 1.0
gboolean
hdy_expander_row_get_use_underline (HdyExpanderRow *self
);
Gets whether an embedded underline in the text of the title and subtitle
labels indicates a mnemonic. See hdy_expander_row_set_use_underline()
.
TRUE
if an embedded underline in the title and subtitle labels
indicates the mnemonic accelerator keys.
Since: 1.0
void hdy_expander_row_set_use_underline (HdyExpanderRow *self
,gboolean use_underline
);
If true, an underline in the text of the title and subtitle labels indicates the next character should be used for the mnemonic accelerator key.
Since: 1.0
const gchar *
hdy_expander_row_get_icon_name (HdyExpanderRow *self
);
Gets the icon name for self
.
Since: 1.0
void hdy_expander_row_set_icon_name (HdyExpanderRow *self
,const gchar *icon_name
);
Sets the icon name for self
.
Since: 1.0
void hdy_expander_row_set_expanded (HdyExpanderRow *self
,gboolean expanded
);
gboolean
hdy_expander_row_get_enable_expansion (HdyExpanderRow *self
);
Gets whether the expansion of self
is enabled.
Since: 0.0.6
void hdy_expander_row_set_enable_expansion (HdyExpanderRow *self
,gboolean enable_expansion
);
Sets whether the expansion of self
is enabled.
Since: 0.0.6
gboolean
hdy_expander_row_get_show_enable_switch
(HdyExpanderRow *self
);
Gets whether the switch enabling the expansion of self
is visible.
Since: 0.0.6
void hdy_expander_row_set_show_enable_switch (HdyExpanderRow *self
,gboolean show_enable_switch
);
Sets whether the switch enabling the expansion of self
is visible.
Since: 0.0.6
“enable-expansion”
property“enable-expansion” gboolean
TRUE
if the expansion is enabled.
Owner: HdyExpanderRow
Flags: Read / Write
Default value: TRUE
“expanded”
property“expanded” gboolean
TRUE
if the row is expanded.
Owner: HdyExpanderRow
Flags: Read / Write
Default value: FALSE
“icon-name”
property“icon-name” gchar *
The icon name for this row.
Owner: HdyExpanderRow
Flags: Read / Write
Default value: ""
Since: 1.0
“show-enable-switch”
property“show-enable-switch” gboolean
TRUE
if the switch enabling the expansion is visible.
Owner: HdyExpanderRow
Flags: Read / Write
Default value: FALSE
“subtitle”
property“subtitle” gchar *
The subtitle for this row.
Owner: HdyExpanderRow
Flags: Read / Write
Default value: ""
Since: 1.0
“title”
property“title” gchar *
The title for this row.
Owner: HdyExpanderRow
Flags: Read / Write
Default value: ""
Since: 1.0