PointerOverPreProcessor
struct · ferroui-base · v0.5.0
struct PointerOverPreProcessor
Tracks which element the pointer is over for one input root, raising the pointer entered and exited events as it changes.
It observes the raw input of the input manager (subscribe it to
IInputManager::pre_process) and is
told by its host when the scene changed under a resting pointer.
Members
new
fn new(input_root: Rc<dyn IInputRoot>) -> Self
Creates the pre-processor for an input root.
last_position
fn last_position(self: &Self) -> Option<PixelPoint>
The last known position of the pointer, in screen coordinates.
scene_invalidated
fn scene_invalidated(self: &Self, dirty_rect: Rect)
Called by the host when the part of the scene within dirty_rect
changed: re-evaluates which element a resting pointer is over.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherIObserver<Rc<dyn IRawInputEventArgs>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.