package mosaic

  1. Overview
  2. Docs
Terminal UI framework for OCaml with The Elm Architecture

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mosaic-0.1.0.tbz
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9

doc/mosaic.ui/Mosaic_ui/Event/Paste/index.html

Module Event.PasteSource

Sourcetype t

The type for text paste events.

Wraps pasted text with propagation and default-prevention flags. See Key.t for a description of the dispatch model.

Sourceval of_text : string -> t

of_text s is a paste event containing s. Propagation and default-prevention flags start as false.

Sourceval text : t -> string

text t is the pasted text carried by t.

Sourceval stop_propagation : t -> unit

stop_propagation t prevents t from reaching the focused-node handler tier. When called in a global handler, the event is not dispatched to focused-node handlers.

Sourceval propagation_stopped : t -> bool

propagation_stopped t is true iff stop_propagation has been called on t.

Sourceval prevent_default : t -> unit

prevent_default t marks renderer-level default behaviour as prevented. After global paste handlers run, delivery to the focused node is suppressed.

Sourceval default_prevented : t -> bool

default_prevented t is true iff prevent_default has been called on t.

Sourceval equal : t -> t -> bool

equal a b is true iff a and b contain the same text. Dispatch control state is ignored.

Sourceval pp : Format.formatter -> t -> unit

pp formats a paste event for debugging.