TermUI.Parser.Events.MouseEvent (TermUI v0.2.0)

View Source

Represents a mouse input event.

Fields

  • action - :press, :release, or :motion
  • button - :left, :middle, :right, :wheel_up, :wheel_down, or :none
  • x - Column (1-indexed)
  • y - Row (1-indexed)
  • modifiers - List of modifiers held

Summary

Types

t()

@type t() :: %TermUI.Parser.Events.MouseEvent{
  action: :press | :release | :motion,
  button: atom(),
  modifiers: [atom()],
  x: pos_integer(),
  y: pos_integer()
}