euporie.core.mouse_events
Key bindings to deal with pixel mouse positioning.
Functions
|
Typed version of namedtuple. |
Classes
|
|
|
Mouse event, which also store relative position of the mouse event in a cell. |
|
|
|
|
alias of |
|
|
Store the relative position or the mouse within a terminal cell. |
- class euporie.core.mouse_events.MouseEvent(position: Point, event_type: MouseEventType, button: MouseButton, modifiers: frozenset[MouseModifier], cell_position: RelativePosition | None)
Bases:
MouseEventMouse event, which also store relative position of the mouse event in a cell.
- class euporie.core.mouse_events.RelativePosition(x: float, y: float)
Bases:
NamedTupleStore the relative position or the mouse within a terminal cell.
- count(value, /)
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.