Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | adw_combo_row_new () |
GListModel * | adw_combo_row_get_model () |
void | adw_combo_row_set_model () |
void | adw_combo_row_set_selected () |
guint | adw_combo_row_get_selected () |
gpointer | adw_combo_row_get_selected_item () |
GtkListItemFactory * | adw_combo_row_get_factory () |
void | adw_combo_row_set_factory () |
GtkListItemFactory * | adw_combo_row_get_list_factory () |
void | adw_combo_row_set_list_factory () |
GtkExpression * | adw_combo_row_get_expression () |
void | adw_combo_row_set_expression () |
gboolean | adw_combo_row_get_use_subtitle () |
void | adw_combo_row_set_use_subtitle () |
GtkExpression * | expression | Read / Write |
GtkListItemFactory * | factory | Read / Write |
GtkListItemFactory * | list-factory | Read / Write |
GListModel * | model | Read / Write |
guint | selected | Read / Write |
GObject * | selected-item | Read |
gboolean | use-subtitle | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkListBoxRow ╰── AdwPreferencesRow ╰── AdwActionRow ╰── AdwComboRow
AdwComboRow implements GtkAccessible, GtkBuildable, GtkConstraintTarget and GtkActionable.
GListModel *
adw_combo_row_get_model (AdwComboRow *self
);
Gets the model that provides the displayed items.
Since: 1.0
void adw_combo_row_set_model (AdwComboRow *self
,GListModel *model
);
Sets the GListModel to use.
Since: 1.0
void adw_combo_row_set_selected (AdwComboRow *self
,guint position
);
Selects the item at the given position.
Since: 1.0
guint
adw_combo_row_get_selected (AdwComboRow *self
);
Gets the position of the selected item.
Since: 1.0
gpointer
adw_combo_row_get_selected_item (AdwComboRow *self
);
Gets the selected item. If no item is selected, NULL
is returned.
Since: 1.0
GtkListItemFactory *
adw_combo_row_get_factory (AdwComboRow *self
);
Gets the factory that's currently used to populate list items.
The factory returned by this function is always used for the item in the button. It is also used for items in the popup if “list-factory” is not set.
Since: 1.0
void adw_combo_row_set_factory (AdwComboRow *self
,GtkListItemFactory *factory
);
Sets the GtkListItemFactory to use for populating list items.
Since: 1.0
GtkListItemFactory *
adw_combo_row_get_list_factory (AdwComboRow *self
);
Gets the factory that's currently used to populate list items in the popup.
Since: 1.0
void adw_combo_row_set_list_factory (AdwComboRow *self
,GtkListItemFactory *factory
);
Sets the GtkListItemFactory to use for populating list items in the popup.
Since: 1.0
GtkExpression *
adw_combo_row_get_expression (AdwComboRow *self
);
Gets the expression set with adw_combo_row_set_expression()
.
Since: 1.0
void adw_combo_row_set_expression (AdwComboRow *self
,GtkExpression *expression
);
Sets the expression that gets evaluated to obtain strings, used to bind strings to labels produced by the default factory.
The expression must have a value type of G_TYPE_STRING.
Since: 1.0
gboolean
adw_combo_row_get_use_subtitle (AdwComboRow *self
);
Gets whether the current value of self
should be displayed as its subtitle.
Since: 1.0
void adw_combo_row_set_use_subtitle (AdwComboRow *self
,gboolean use_subtitle
);
Sets whether the current value of self
should be displayed as its subtitle.
If TRUE
, you should not access AdwActionRow:subtitle.
Since: 1.0
“expression”
property “expression” GtkExpression *
An expression to evaluate to obtain strings, used to bind strings to labels produced by the default factory.
[type GtkExpression]
Owner: AdwComboRow
Flags: Read / Write
Since: 1.0
“factory”
property “factory” GtkListItemFactory *
Factory for populating list items.
Owner: AdwComboRow
Flags: Read / Write
Since: 1.0
“list-factory”
property “list-factory” GtkListItemFactory *
The factory for populating list items in the popup.
If this is not set, “factory” is used.
Owner: AdwComboRow
Flags: Read / Write
Since: 1.0
“model”
property “model” GListModel *
Model for the displayed items.
Owner: AdwComboRow
Flags: Read / Write
Since: 1.0
“selected”
property “selected” guint
The position of the selected item in “model”, or GTK_INVALID_LIST_POSITION if no item is selected.
Owner: AdwComboRow
Flags: Read / Write
Default value: 4294967295
Since: 1.0
“selected-item”
property “selected-item” GObject *
The selected item.
Owner: AdwComboRow
Flags: Read
Since: 1.0
“use-subtitle”
property “use-subtitle” gboolean
TRUE
to set the current value as the subtitle.
If you use a custom list item factory, you will need to give the row a name conversion expression with “expression”.
If TRUE
, you should not access “subtitle”.
Owner: AdwComboRow
Flags: Read / Write
Default value: FALSE
Since: 1.0