Struct cognitive_exhibitor::Pointer
[−]
[src]
pub struct Pointer<C> where
C: ExhibitorCoordinationTrait, { /* fields omitted */ }
State of the pointer.
Methods
impl<C> Pointer<C> where
C: ExhibitorCoordinationTrait,
[src]
C: ExhibitorCoordinationTrait,
impl<C> Pointer<C> where
C: ExhibitorCoordinationTrait,
[src]
C: ExhibitorCoordinationTrait,
fn get_global_position(&self) -> Position
Pointer
constructor.
Returns pointer position in global coordinates.
fn get_cursor_sid(&self) -> SurfaceId
Returns ID of the cursor surface.
fn get_keyboard_focussed_sid(&self) -> SurfaceId
Return ID of the surface with keyboard focus.
fn get_pointer_focussed_sid(&self) -> SurfaceId
Return ID of the surface with pointer focus.
impl<C> Pointer<C> where
C: ExhibitorCoordinationTrait,
[src]
C: ExhibitorCoordinationTrait,
Input handlers.
fn move_and_cast(&mut self, vector: Vector, displays: &HashMap<i32, Display<C>>)
Pointer
constructor.
Move pointer and cast to correct output.
fn update_position(
&mut self,
pos: OptionalPosition,
displays: &HashMap<i32, Display<C>>
)
&mut self,
pos: OptionalPosition,
displays: &HashMap<i32, Display<C>>
)
Change position of the pointer and cast to correct output.
fn reset_position(&mut self)
Reset position of the pointer.
fn update_hover_state(
&mut self,
display_area: Area,
surfaces: &Vec<SurfaceContext>
)
&mut self,
display_area: Area,
surfaces: &Vec<SurfaceContext>
)
Checks for change of surface pointer is hovering or relative position to this surface and notify rest of the application about changes.
impl<C> Pointer<C> where
C: ExhibitorCoordinationTrait,
[src]
C: ExhibitorCoordinationTrait,
Other requests.
fn on_surface_destroyed(&mut self, sid: SurfaceId)
Handles destruction of cursor surface.
fn on_keyboard_focus_changed(&mut self, sid: SurfaceId)
Sets surface ID of currently keyboard focused surface.
fn on_surface_change(&mut self, sid: SurfaceId)
Handles cursor surface change request.