TermUI.Event.Mouse (TermUI v0.2.0)

View Source

Mouse input event.

Represents mouse actions with position and button info.

Summary

Types

action()

@type action() ::
  :click
  | :double_click
  | :move
  | :drag
  | :scroll_up
  | :scroll_down
  | :press
  | :release

button()

@type button() :: :left | :middle | :right | nil

t()

@type t() :: %TermUI.Event.Mouse{
  action: action(),
  button: button(),
  modifiers: [atom()],
  timestamp: integer(),
  x: integer(),
  y: integer()
}

Functions

new(action, button, x, y, opts \\ [])

Creates a new mouse event.