package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Combo_box_text/index.html
Module Wrappers.Combo_box_text
type t =
[ `combo_box_text | `combo_box | `widget | `initially_unowned | `object_ ]
Gobject.objval new_ : unit -> tCreate a new ComboBoxText
val new_with_entry : unit -> tCreate a new ComboBoxText
val remove_all : t -> unitRemoves all the text entries from the combo box.
val remove : t -> int -> unitRemoves the string at @position from @combo_box.
val prepend_text : t -> string -> unitPrepends @text to the list of strings stored in @combo_box.
This is the same as calling method@Gtk.ComboBoxText.insert_text with a position of 0.
val prepend : t -> string option -> string -> unitPrepends @text to the list of strings stored in @combo_box.
If @id is non-%NULL then it is used as the ID of the row.
This is the same as calling method@Gtk.ComboBoxText.insert with a position of 0.
val insert_text : t -> int -> string -> unitInserts @text at @position in the list of strings stored in @combo_box.
If @position is negative then @text is appended.
This is the same as calling method@Gtk.ComboBoxText.insert with a %NULL ID string.
val insert : t -> int -> string option -> string -> unitInserts @text at @position in the list of strings stored in @combo_box.
If @id is non-%NULL then it is used as the ID of the row. See property@Gtk.ComboBox:id-column.
If @position is negative then @text is appended.
val get_active_text : t -> string optionReturns the currently active string in @combo_box.
If no row is currently selected, %NULL is returned. If @combo_box contains an entry, this function will return its contents (which will not necessarily be an item from the list).
val append_text : t -> string -> unitAppends @text to the list of strings stored in @combo_box.
This is the same as calling method@Gtk.ComboBoxText.insert_text with a position of -1.
val append : t -> string option -> string -> unitAppends @text to the list of strings stored in @combo_box.
If @id is non-%NULL then it is used as the ID of the row.
This is the same as calling method@Gtk.ComboBoxText.insert with a position of -1.