Class: Handy::ComboRow
- Inherits:
-
ActionRow
- Object
- Gtk::ListBoxRow
- PreferencesRow
- ActionRow
- Handy::ComboRow
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#bind_model(model, create_list_widget_func, create_current_widget_func, user_data, user_data_free_func) ⇒ nil
Binds model to self.
-
#bind_name_model(model, get_name_func, user_data, user_data_free_func) ⇒ nil
Binds model to self.
-
#initialize ⇒ Gtk::Widget
constructor
Creates a new
HdyComboRow. -
#model ⇒ Gio::ListModel
Gets the model bound to self.
-
#selected_index ⇒ Integer
The index of the selected item in its [ifaceGio.ListModel].
-
#selected_index=(selected_index) ⇒ Integer
The index of the selected item in its [ifaceGio.ListModel].
-
#set_for_enum(enum_type, get_name_func, user_data, user_data_free_func) ⇒ nil
Creates a model for enum_type and binds it to self.
-
#set_get_name_func(get_name_func, user_data, user_data_free_func) ⇒ nil
Sets a closure to convert items into names.
-
#use_subtitle ⇒ Boolean
Gets whether the current value of self should be displayed as its subtitle.
-
#use_subtitle=(use_subtitle) ⇒ Boolean
Whether to use the current value as the subtitle.
-
#use_subtitle? ⇒ Boolean
Whether to use the current value as the subtitle.
Methods inherited from ActionRow
#activatable_widget, #activatable_widget=, #activate, #add_prefix, #icon_name, #icon_name=, #subtitle, #subtitle=, #subtitle_lines, #subtitle_lines=, #title_lines, #title_lines=, #use_underline, #use_underline=, #use_underline?
Methods inherited from PreferencesRow
#title, #title=, #use_underline, #use_underline=, #use_underline?
Constructor Details
#initialize ⇒ Gtk::Widget
Creates a new HdyComboRow.
Instance Method Details
#bind_model(model, create_list_widget_func, create_current_widget_func, user_data, user_data_free_func) ⇒ nil
Binds model to self.
If self was already bound to a model, that previous binding is destroyed.
The contents of self are cleared and then filled with widgets that represent
items from model. self is updated whenever model changes. If model is
NULL, self is left empty.
#bind_name_model(model, get_name_func, user_data, user_data_free_func) ⇒ nil
Binds model to self.
If self was already bound to a model, that previous binding is destroyed.
The contents of self are cleared and then filled with widgets that represent
items from model. self is updated whenever model changes. If model is
NULL, self is left empty.
This is more convenient to use than [methodComboRow.bind_model] if you want to represent items of the model with names.
#model ⇒ Gio::ListModel
Gets the model bound to self.
#selected_index ⇒ Integer
The index of the selected item in its [ifaceGio.ListModel].
#selected_index=(selected_index) ⇒ Integer
The index of the selected item in its [ifaceGio.ListModel].
#set_for_enum(enum_type, get_name_func, user_data, user_data_free_func) ⇒ nil
Creates a model for enum_type and binds it to self.
The items of the model will be [classEnumValueObject] objects.
If self was already bound to a model, that previous binding is destroyed.
The contents of self are cleared and then filled with widgets that represent
items from model. self is updated whenever model changes. If model is
NULL, self is left empty.
This is more convenient to use than [methodComboRow.bind_name_model] if you want to represent values of an enumeration with names.
See [funcenum_value_row_name].
#set_get_name_func(get_name_func, user_data, user_data_free_func) ⇒ nil
Sets a closure to convert items into names.
See [propertyComboRow:use-subtitle].
#use_subtitle ⇒ Boolean
Gets whether the current value of self should be displayed as its subtitle.
#use_subtitle=(use_subtitle) ⇒ Boolean
Whether to use the current value as the subtitle.
If you use a custom widget creation function, you will need to give the row a name conversion closure with [methodComboRow.set_get_name_func].
If TRUE, you should not access [propertyActionRow:subtitle].
#use_subtitle? ⇒ Boolean
Whether to use the current value as the subtitle.
If you use a custom widget creation function, you will need to give the row a name conversion closure with [methodComboRow.set_get_name_func].
If TRUE, you should not access [propertyActionRow:subtitle].