Trait cognitive_qualia::surface::SurfaceFocusing [] [src]

pub trait SurfaceFocusing {
    fn get_keyboard_focused_sid(&self) -> SurfaceId;
    fn set_keyboard_focus(&mut self, sid: SurfaceId);
    fn get_pointer_focused_sid(&self) -> SurfaceId;
    fn set_pointer_focus(&mut self, sid: SurfaceId, position: Position);
}

Focusing and obtaining information about keyboard and pointer focus.

Required Methods

Returns ID of currently keyboard-focussed surface.

Informs rest of the application exhibitor set keyboard focus to given surface.

Returns ID of currently pointer-focussed surface.

Informs rest of the application exhibitor set pointer focus to given surface.

Implementors