Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | adw_action_row_new () |
const char * | adw_action_row_get_subtitle () |
void | adw_action_row_set_subtitle () |
const char * | adw_action_row_get_icon_name () |
void | adw_action_row_set_icon_name () |
GtkWidget * | adw_action_row_get_activatable_widget () |
void | adw_action_row_set_activatable_widget () |
gboolean | adw_action_row_get_use_underline () |
void | adw_action_row_set_use_underline () |
int | adw_action_row_get_title_lines () |
void | adw_action_row_set_title_lines () |
int | adw_action_row_get_subtitle_lines () |
void | adw_action_row_set_subtitle_lines () |
void | adw_action_row_add_prefix () |
void | adw_action_row_add_suffix () |
void | adw_action_row_remove () |
void | adw_action_row_activate () |
GtkWidget * | activatable-widget | Read / Write |
char * | icon-name | Read / Write |
char * | subtitle | Read / Write |
int | subtitle-lines | Read / Write |
int | title-lines | Read / Write |
gboolean | use-underline | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkListBoxRow ╰── AdwPreferencesRow ╰── AdwActionRow ╰── AdwComboRow
AdwActionRow implements GtkAccessible, GtkBuildable, GtkConstraintTarget and GtkActionable.
const char *
adw_action_row_get_subtitle (AdwActionRow *self
);
Gets the subtitle for self
.
Since: 1.0
void adw_action_row_set_subtitle (AdwActionRow *self
,const char *subtitle
);
Sets the subtitle for self
.
Since: 1.0
const char *
adw_action_row_get_icon_name (AdwActionRow *self
);
Gets the icon name for self
.
the icon name for self
.
The returned string is owned by the AdwActionRow and should not be freed.
[transfer none]
Since: 1.0
void adw_action_row_set_icon_name (AdwActionRow *self
,const char *icon_name
);
Sets the icon name for self
.
Since: 1.0
GtkWidget *
adw_action_row_get_activatable_widget (AdwActionRow *self
);
Gets the widget activated when self
is activated.
the widget activated when self
is
activated, or NULL
if none has been set.
[nullable][transfer none]
Since: 1.0
void adw_action_row_set_activatable_widget (AdwActionRow *self
,GtkWidget *widget
);
Sets the widget to activate when self
is activated, either by clicking
on it, by calling adw_action_row_activate()
, or via mnemonics in the title or
the subtitle. See the “use_underline” property to enable mnemonics.
The target widget will be activated by emitting the GtkWidget::mnemonic-activate signal on it.
Since: 1.0
gboolean
adw_action_row_get_use_underline (AdwActionRow *self
);
Gets whether an embedded underline in the text of the title and subtitle
labels indicates a mnemonic. See adw_action_row_set_use_underline()
.
TRUE
if an embedded underline in the title and subtitle labels
indicates the mnemonic accelerator keys.
Since: 1.0
void adw_action_row_set_use_underline (AdwActionRow *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
int
adw_action_row_get_title_lines (AdwActionRow *self
);
Gets 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.
Since: 1.0
void adw_action_row_set_title_lines (AdwActionRow *self
,int 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 |
||
title_lines |
the number of lines at the end of which the title label will be ellipsized |
Since: 1.0
int
adw_action_row_get_subtitle_lines (AdwActionRow *self
);
Gets 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.
Since: 1.0
void adw_action_row_set_subtitle_lines (AdwActionRow *self
,int 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 |
||
subtitle_lines |
the number of lines at the end of which the subtitle label will be ellipsized |
Since: 1.0
void adw_action_row_add_prefix (AdwActionRow *self
,GtkWidget *widget
);
Adds a prefix widget to self
.
Since: 1.0
void adw_action_row_add_suffix (AdwActionRow *self
,GtkWidget *widget
);
Adds a suffix widget to self
.
Since: 1.0
void adw_action_row_remove (AdwActionRow *self
,GtkWidget *widget
);
Removes a child from self
.
Since: 1.0
struct AdwActionRowClass { GtkListBoxRowClass parent_class; void (*activate) (AdwActionRow *self); };
“activatable-widget”
property “activatable-widget” GtkWidget *
The activatable widget for this row.
Owner: AdwActionRow
Flags: Read / Write
Since: 1.0
“icon-name”
property “icon-name” char *
The icon name for this row.
Owner: AdwActionRow
Flags: Read / Write
Default value: ""
Since: 1.0
“subtitle”
property “subtitle” char *
The subtitle for this row.
Owner: AdwActionRow
Flags: Read / Write
Default value: ""
Since: 1.0
“subtitle-lines”
property “subtitle-lines” int
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.
Owner: AdwActionRow
Flags: Read / Write
Allowed values: >= 0
Default value: 0
Since: 1.0
“title-lines”
property “title-lines” int
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.
Owner: AdwActionRow
Flags: Read / Write
Allowed values: >= 0
Default value: 0
Since: 1.0
“use-underline”
property “use-underline” gboolean
Whether an embedded underline in the text of the title and subtitle labels indicates a mnemonic.
Owner: AdwActionRow
Flags: Read / Write
Default value: FALSE
Since: 1.0
“activated”
signalvoid user_function (AdwActionRow *self, gpointer user_data)
This signal is emitted after the row has been activated.
self |
The AdwActionRow instance |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 1.0