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
fn get_keyboard_focused_sid(&self) -> SurfaceId
Returns ID of currently keyboard-focussed surface.
fn set_keyboard_focus(&mut self, sid: SurfaceId)
Informs rest of the application exhibitor set keyboard focus to given surface.
fn get_pointer_focused_sid(&self) -> SurfaceId
Returns ID of currently pointer-focussed surface.
fn set_pointer_focus(&mut self, sid: SurfaceId, position: Position)
Informs rest of the application exhibitor set pointer focus to given surface.