Class PointerLeaveEvent


public class PointerLeaveEvent extends PointerEvent
Represents a pointer leave event that occurs when a pointer leaves an element's boundaries.

Unlike PointerOutEvent, this event does not bubble.

Since:
2026
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • PointerLeaveEvent

      public PointerLeaveEvent(int clientX, int clientY, int pointerId, String pointerType, int width, int height, float pressure, int tiltX, int tiltY, boolean isPrimary)
      Constructs a new PointerLeaveEvent with the specified parameters.
      Parameters:
      clientX - the X coordinate of the pointer relative to the client viewport
      clientY - the Y coordinate of the pointer relative to the client viewport
      pointerId - the unique identifier for the pointer
      pointerType - the type of pointer (mouse, pen, touch)
      width - the width of the pointer contact geometry
      height - the height of the pointer contact geometry
      pressure - the normalized pressure of the pointer input
      tiltX - the tilt angle along the X axis in degrees
      tiltY - the tilt angle along the Y axis in degrees
      isPrimary - whether this pointer is the primary pointer
  • Method Details

    • dispatchTo

      public void dispatchTo(PointerListener listener)
      Dispatches this event to the specified listener for processing.
      Specified by:
      dispatchTo in class Event<PointerListener>
      Parameters:
      listener - the listener to which this event should be dispatched