pub trait PointerHandler: Sized {
    // Required method
    fn pointer_frame(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        pointer: &WlPointer,
        events: &[PointerEvent],
    );
}

Required Methods§

source

fn pointer_frame( &mut self, conn: &Connection, qh: &QueueHandle<Self>, pointer: &WlPointer, events: &[PointerEvent], )

One or more pointer events are available.

Multiple related events may be grouped together in a single frame. Some examples:

  • A drag that terminates outside the surface may send the Release and Leave events as one frame
  • Movement from one surface to another may send the Enter and Leave events in one frame

Object Safety§

This trait is not object safe.

Implementors§