package bogue

  1. Overview
  2. Docs

Module Bogue.Text_inputSource

One-line text-input widget.

Dependency graph
Sourcetype t
Sourcetype filter = string -> bool
Sourceval 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

Sourceval uint_filter : filter
Sourceval text : t -> string

Modifying the widget

Sourceval activate : t -> unit

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.