Trait cognitive_wayland_frontend::Gateway [] [src]

pub trait Gateway {
    fn on_output_found(&mut self, bundle: DrmBundle);
    fn on_display_created(&mut self, output_info: OutputInfo);
    fn on_keyboard_input(&mut self, key: Key, mods: Option<KeyMods>);
    fn on_surface_frame(&mut self, sid: SurfaceId, milliseconds: Milliseconds);
    fn on_pointer_focus_changed(
        &self,
        old_sid: SurfaceId,
        new_sid: SurfaceId,
        position: Position
    ); fn on_pointer_relative_motion(
        &self,
        sid: SurfaceId,
        position: Position,
        milliseconds: Milliseconds
    ); fn on_pointer_button(&self, btn: Button); fn on_pointer_axis(&self, axis: Axis); fn on_keyboard_focus_changed(
        &mut self,
        old_sid: SurfaceId,
        new_sid: SurfaceId
    ); fn on_transfer_offered(&mut self); fn on_transfer_requested(&mut self, mime_type: String, fd: RawFd); fn on_surface_reconfigured(
        &self,
        sid: SurfaceId,
        size: Size,
        state_flags: SurfaceState
    ); fn on_screenshot_done(&mut self); }

Required Methods

Notifies output was found.

Notifies display was created.

Notifies keyboard key was pressed.

Notifies about redrawing surface.

Notifies that pointer was moved from above one surface above another.

Notifies that pointer moved.

Notifies mouse or touchpad button was pressed.

Notifies about pointer move.

Notifies about keyboard focus change.

Handles change of offered transfer data.

Handles data transfer request to requesting client.

Notifies about change of size or state of surface.

Notifies that screenshot data are ready.

Implementors