class GTK::V3::Gtk::GtkComboBoxText

unit class GTK::V3::Gtk::GtkComboBoxText;
also is GTK::V3::Gtk::GtkComboBox;

GtkComboBoxText — A simple, text-only combo box

Synopsis

# Get a fully designed text combobox
my GTK::V3::Gtk::GtkComboBoxText $server-cb .= new(:build-id<serverComboBox>);
my Str $server = $server-cb.get-active-id;

Methods

gtk_combo_box_text_append

method gtk_combo_box_text_append ( Str $id, Str $text )

Appends text. See also gnome developer docs.

gtk_combo_box_text_prepend

method gtk_combo_box_text_prepend ( Str $id, Str $text )

Prepends text. See also gnome developer docs.

This is the same as calling gtk_combo_box_text_insert() with a position of 0.

gtk_combo_box_text_insert

method gtk_combo_box_text_insert ( Int $position, Str $id, Str $text )

Insert text at position. See also gnome developer docs.

[gtk_combo_box_text_] append_text

method gtk_combo_box_text_append_text ( Str $text )

Append text. See also gnome developer docs.

[gtk_combo_box_text_] prepend_text

method gtk_combo_box_text_prepend_text ( Str $text )

Prepend text. See also gnome developer docs.

[gtk_combo_box_text_] insert_text

method gtk_combo_box_text_insert_text ( int32 $position, Str $text )

Insert text at position. See also gnome developer docs.

gtk_combo_box_text_remove

method gtk_combo_box_text_remove ( Int $position )

Remove text at position. See also gnome developer docs.

[gtk_combo_box_text_] remove_all

method gtk_combo_box_text_remove_all ( )

Remove all text entries. See also gnome developer docs.

gtk_combo_box_text_get_active_text

method gtk_combo_box_text_get_active_text ( )

Get selected entry. See also gnome developer docs.

new

multi submethod BUILD ( :$widget! )

Create a simple text combobox using a native object from elsewhere. See also Gtk::V3::Glib::GObject.

multi submethod BUILD ( Str :$build-id! )

Create a simple text combobox using a native object from a builder. See also Gtk::V3::Glib::GObject.