ghostty_mouse_event_get_position function

  1. @Native<GhosttyMousePosition Function(GhosttyMouseEvent)>(GhosttyMouseEvent)>()
GhosttyMousePosition ghostty_mouse_event_get_position(
  1. GhosttyMouseEvent event
)

Get the event position in surface-space pixels.

@param event The event handle, must not be NULL @return The current event position

@ingroup mouse

Implementation

@ffi.Native<GhosttyMousePosition Function(GhosttyMouseEvent)>()
external GhosttyMousePosition ghostty_mouse_event_get_position(
  GhosttyMouseEvent event,
);