DropDownText
Object Hierarchy:
Description:
public sealed class DropDownText : Widget
A Ryokucha.DropDownText is a simple variant of
Gtk.DropDown for text-only use cases.
It is designed to have similar looks, feels, and interface with
Gtk.ComboBoxText, which is deprecated in GTK 4.10.
While it is said to use Gtk.DropDown with a
Gtk.StringList instead, it is not possible to give "active-id"
to each row unlike Gtk.ComboBoxText. This class achieves that using normal Gtk.DropDown, while hiding messy stuff and making it simple to
use like Gtk.ComboBoxText.

Content:
Properties:
- public string? active_id { get; set; }
The value of the ID column of the active row.
- public DropDown dropdown { get; set; }
A Gtk.DropDown which this uses internally.
- public EllipsizeMode ellipsize { get; set; }
The preferred place to ellipsize the string, if the label does not
have enough room to display the entire string.
- public int max_width_chars { get; set; }
The desired maximum width of the label, in characters.
Creation methods:
Methods:
- public void append (string? id, string text)
Appends text to the list of strings stored in this.
- public void append_text (string text)
Appends text to the list of strings stored in this.
- public string? get_active_text ()
Returns the currently active string in this.
- public void insert (int position, string? id, string text)
Inserts text at position in the list of strings stored in this.
- public void insert_text (int position, string text)
Inserts text at position in the list of strings stored in this.
- public void prepend (string? id, string text)
Prepends text to the list of strings stored in this.
- public void prepend_text (string text)
Prepends text to the list of strings stored in this.
- public void remove (int position)
Removes the string at position from this.
- public void remove_all ()
Removes all the text entries from the dropdown.
Signals:
Inherited Members:
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 Gtk.Accessible
- accessible_role
- announce
- get_accessible_parent
- get_accessible_role
- get_at_context
- get_bounds
- get_first_accessible_child
- get_next_accessible_sibling
- get_platform_state
- reset_property
- reset_relation
- reset_state
- set_accessible_parent
- update_next_accessible_sibling
- update_property
- update_property_value
- update_relation
- update_relation_value
- update_state
- update_state_value
All known members inherited from interface Gtk.Buildable
- add_child
- custom_finished
- custom_tag_end
- custom_tag_start
- get_buildable_id
- get_id
- get_internal_child
- parser_finished
- set_buildable_property
- set_id