Struct cognitive_wayland_frontend::engine::Engine [] [src]

pub struct Engine { /* fields omitted */ }

This is main structure of wayland_frontend crate.

For information about its role and place among other structures see crate-level documentation.

Methods

impl Engine
[src]

Constructs new Engine.

Sets display socket up. First tries default skylane socket, if that fails tries $XDG_RUNTIME_DIR/wayland-X where X is number from 0 to 9.

Panics if failed to set display socket up or to initialize keyboard state.

Starts Engine: adds display socket to LocalDispatcher.

Reads client requests without blocking.

impl Engine
[src]

Public handlers for client related events.

Handles new client: - accepts socket and adds it to Dispatcher - creates proxy for new client and registers global Wayland objects. - creates global display Wayland objects and bind it to client

Handles termination (socket hung up) of client.

Handles request from client associated with given id.

Trait Implementations

impl Gateway for Engine
[src]

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.