package bogue

  1. Overview
  2. Docs

One-line text-input widget.

Dependency graph
type t
type filter = string -> bool
val triggers : Trigger.t list

The list of events that a Text_input can react to. Currently this is Sdl.Event.[text_editing; text_input; key_down; key_up].

Creating the widget

Use Widget.text_input

val uint_filter : filter
val text : t -> string
val activate : t -> unit

Modifying the widget

Warning: two Text_input widgets cannot be active at the same time. You can use Sync.push to delay the activation.

OCaml

Innovation. Community. Security.