MingaEditor.Mouse.TextEvent (Minga v0.1.0)

Copy Markdown View Source

A frontend text-pointer event resolved against an immutable presentation.

Summary

Functions

Returns true when a release intentionally carries no text target.

Types

scroll_direction()

@type scroll_direction() :: -1 | 0 | 1

t()

@type t() :: %MingaEditor.Mouse.TextEvent{
  button: MingaEditor.Frontend.Protocol.mouse_button(),
  click_count: pos_integer(),
  event_type: MingaEditor.Frontend.Protocol.mouse_event_type(),
  mods: MingaEditor.Frontend.Protocol.modifiers(),
  presentation_id: non_neg_integer(),
  row_id: non_neg_integer(),
  row_index: non_neg_integer(),
  scroll_x: scroll_direction(),
  scroll_y: scroll_direction(),
  utf16_offset: non_neg_integer(),
  window_id: MingaEditor.Window.id()
}

Functions

new(attrs)

@spec new(map()) :: t()

targetless_release?(text_event)

@spec targetless_release?(t()) :: boolean()

Returns true when a release intentionally carries no text target.