Struct cognitive_exhibitor::Exhibitor [] [src]

pub struct Exhibitor<C> where
    C: ExhibitorCoordinationTrait
{ /* fields omitted */ }

Exhibitor manages tasks related to drawing and compositing surfaces.

Methods

impl<C> Exhibitor<C> where
    C: ExhibitorCoordinationTrait + Clone
[src]

General methods.

Exhibitor constructor.

impl<C> Exhibitor<C> where
    C: ExhibitorCoordinationTrait + Clone
[src]

Notification handlers.

Handles notification about needed redraw.

Handles notification about deactivation of seat.

Handles notification about activation of seat.

Wakes up each display.

This method is called when new output was found.

This method is called when pageflip occurred. id is ID of output that scheduled the pageflip.

This method is called when a command was requested to be executed by compositor.

This method is called when changing cursor surface was requested.

This method is called when changing background surface was requested.

TODO: Make change background request be display specific.

This method is called when new surface is ready to be managed.

Dock given surface with given size on given display.

TODO: Currently dock will shown on top. Make it possible to dock it on arbitrary edge.

This method is called when surface was destroyed.

This method is called when keyboard focus changed.

This method is called when screenshot was requested.

impl<C> Exhibitor<C> where
    C: ExhibitorCoordinationTrait
[src]

Input handlers.

Handle pointer motion event.

Handle pointer position event.

Handle pointer button event.

Handle pointer position reset event.

Handles interaction mode switch.

Exhibitor is concerned only about visual mode. When switched on it starts dragging surface under cursor along the cursor.

impl<C> Exhibitor<C> where
    C: ExhibitorCoordinationTrait
[src]

Getters

Returns root frame.

Returns selected frame.

impl<C> Exhibitor<C> where
    C: ExhibitorCoordinationTrait
[src]

Other helper methods

Chooses new display position.

New position is always chosen to be right to most right display.

TODO: Choosing new display position should be configurable, scriptable and cacheable. TODO: Handle reposition of displays when display is lost.