package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Editable_label/index.html

Module Wrappers.Editable_label

type t = [ `editable_label | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_ : string -> t

Create a new EditableLabel

val stop_editing : t -> bool -> unit

Switches the label out of “editing mode”.

If @commit is %TRUE, the resulting text is kept as the property@Gtk.Editable:text property value, otherwise the resulting text is discarded and the label will keep its previous property@Gtk.Editable:text property value.

val start_editing : t -> unit

Switches the label into “editing mode”.

val get_editing : t -> bool

Returns whether the label is currently in “editing mode”.