ComboRow
Object Hierarchy:
Hdy.ComboRow
Hdy.ComboRow
Hdy.ComboRow
Hdy.ActionRow
Hdy.ActionRow
Hdy.ActionRow->Hdy.ComboRow
Hdy.PreferencesRow
Hdy.PreferencesRow
Hdy.PreferencesRow->Hdy.ActionRow
Gtk.ListBoxRow
Gtk.ListBoxRow
Gtk.ListBoxRow->Hdy.PreferencesRow
Gtk.Bin
Gtk.Bin
Gtk.Bin->Gtk.ListBoxRow
Gtk.Container
Gtk.Container
Gtk.Container->Gtk.Bin
Gtk.Widget
Gtk.Widget
Gtk.Widget->Gtk.Container
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Atk.Implementor
Atk.Implementor
Atk.Implementor->Hdy.ComboRow
Atk.Implementor->Hdy.ActionRow
Atk.Implementor->Hdy.PreferencesRow
Atk.Implementor->Gtk.ListBoxRow
Atk.Implementor->Gtk.Bin
Atk.Implementor->Gtk.Container
Atk.Implementor->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Hdy.ComboRow
Gtk.Buildable->Hdy.ActionRow
Gtk.Buildable->Hdy.PreferencesRow
Gtk.Buildable->Gtk.ListBoxRow
Gtk.Buildable->Gtk.Bin
Gtk.Buildable->Gtk.Container
Gtk.Buildable->Gtk.Widget
Gtk.Actionable
Gtk.Actionable
Gtk.Actionable->Hdy.ComboRow
Gtk.Actionable->Hdy.ActionRow
Gtk.Actionable->Hdy.PreferencesRow
Gtk.Actionable->Gtk.ListBoxRow
Description:
[
CCode ( type_id =
"hdy_combo_row_get_type ()" ) ]
[
Version ( since =
"1.0" ) ]
public class ComboRow :
ActionRow ,
Implementor ,
Actionable ,
Buildable
A [class@Gtk.
ListBoxRow] used to choose from a list of items.
The `HdyComboRow` widget allows the user to choose from a list of valid choices. The row displays the selected choice. When activated,
the row displays a popover which allows the user to make a new choice.
The [class@ComboRow] uses the model-view pattern; the list of valid choices is specified in the form of a [[email protected] ], and the
display of the choices can be adapted to the data in the model via widget creation functions.
`HdyComboRow` is [[email protected] :activatable] if a model is set.
CSS nodes
`HdyComboRow` has a main CSS node with name `row`.
Its popover has the node name popover with the `.combo` style class, it contains a [[email protected] ], which in turn contains a [
[email protected] ], both are accessible via their regular nodes.
A checkmark of node and style class `image.checkmark` in the popover denotes the current item.
Content:
Properties:
Creation methods:
Methods:
public void bind_model (ListModel ? model, ListBoxCreateWidgetFunc ? create_list_widget_func, owned ListBoxCreateWidgetFunc ? create_current_widget_func)
Binds model
to this .
public void bind_name_model (ListModel ? model, owned ComboRowGetNameFunc ? get_name_func)
Binds model
to this .
public unowned ListModel ? get_model ()
Gets the model bound to this .
public int get_selected_index ()
Gets the index of the selected item in its [iface@Gio.
public bool get_use_subtitle ()
Gets whether the current value of this
should be displayed as its subtitle.
public void set_for_enum (Type enum_type, owned ComboRowGetEnumValueNameFunc ? get_name_func)
Creates a model for enum_type
and binds it to
this .
public void set_get_name_func (owned ComboRowGetNameFunc ? get_name_func)
Sets a closure to convert items into names.
public void set_selected_index (int selected_index)
Sets the index of the selected item in its [iface@Gio.
public void set_use_subtitle (bool use_subtitle)
Sets whether the current value of this
should be displayed as its subtitle.
Inherited Members:
All known members inherited from class Hdy.ActionRow
All known members inherited from class Hdy.PreferencesRow
All known members inherited from class Gtk.ListBoxRow
activatable
activate
changed
get_activatable
get_header
get_index
get_selectable
is_selected
selectable
set_activatable
set_header
set_selectable
All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Container
@foreach
add
add_with_properties
border_width
check_resize
child
child_get
child_get_property
child_get_valist
child_notify
child_notify_by_pspec
child_set
child_set_property
child_set_valist
child_type
class_find_child_property
class_list_child_properties
composite_name
find_child_property
forall
forall_internal
get_border_width
get_child_property
get_children
get_focus_chain
get_focus_child
get_focus_hadjustment
get_focus_vadjustment
get_path_for_child
get_resize_mode
handle_border_width
install_child_properties
install_child_property
list_child_properties
propagate_draw
remove
resize_children
resize_mode
set_border_width
set_child_property
set_focus_chain
set_focus_child
set_focus_hadjustment
set_focus_vadjustment
set_reallocate_redraws
set_resize_mode
unset_focus_chain
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Actionable
action_name
action_target
get_action_name
get_action_target_value
set_action_name
set_action_target
set_action_target_value
set_detailed_action_name
All known members inherited from interface Gtk.Buildable
add_child
construct_child
custom_finished
custom_tag_end
custom_tag_start
get_internal_child
get_name
parser_finished
set_buildable_property
set_name