[][src]Trait wlroots::cursor::Handler

pub trait Handler {
    fn on_pointer_motion(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Motion
    ) { ... }
fn on_pointer_motion_absolute(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &AbsoluteMotion
    ) { ... }
fn on_pointer_button(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Button
    ) { ... }
fn on_pointer_axis(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Axis
    ) { ... }
fn on_touch_up(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Up
    ) { ... }
fn on_touch_down(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Down
    ) { ... }
fn on_touch_motion(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Motion
    ) { ... }
fn on_touch_cancel(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Cancel
    ) { ... }
fn on_tablet_tool_axis(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Axis
    ) { ... }
fn on_tablet_tool_proximity(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Proximity
    ) { ... }
fn on_tablet_tool_tip(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Tip
    ) { ... }
fn on_tablet_tool_button(
        &mut self,
        compositor_handle: Handle,
        cursor_handle: Handle,
        event: &Button
    ) { ... } }

Provided Methods

Callback that is triggered when the cursor moves.

Callback that is triggered when the buttons on the pointer are pressed.

Implementors