package lambda-term

  1. Overview
  2. Docs
Terminal manipulation library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lambda-term-3.2.0.tar.gz
md5=68a44ac4a5c643cf48ea927c073b4428
sha512=46cd46f47c9f34c0a5e096b96e6eec59667b645bf5201140e498e6d4eb9baba8204a2b30b73c4b2f8140e5cf1972a56e3aa485b27bc5ace25b2c368f713ad7c4

doc/lambda-term/LTerm_mouse/index.html

Module LTerm_mouseSource

Mouse events

Sourcetype button =
  1. | Button1
  2. | Button2
  3. | Button3
  4. | Button4
  5. | Button5
  6. | Button6
  7. | Button7
  8. | Button8
  9. | Button9

Type of mouse button.

Sourcetype t = {
  1. control : bool;
    (*

    Is the control key down ?

    *)
  2. meta : bool;
    (*

    Is the meta key down ?

    *)
  3. shift : bool;
    (*

    Is the shift key down ?

    *)
  4. button : button;
    (*

    Which button have been pressed ?

    *)
  5. row : int;
    (*

    The row at which the mouse was when the button has been pressed.

    *)
  6. col : int;
    (*

    The column at which the mouse was when the button has been pressed.

    *)
}

Type of mouse click event.

Sourceval compare : t -> t -> int

Same as Pervasives.compare.

Sourceval control : t -> bool
Sourceval meta : t -> bool
Sourceval button : t -> button
Sourceval row : t -> int
Sourceval col : t -> int
Sourceval coord : t -> LTerm_geom.coord
Sourceval to_string : t -> string

Returns the string representation of the given mouse event.