FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(input_root: Rc<dyn IInputRoot>) -> Self
    

    Creates the pre-processor for an input root.

    Source

    last_position

    fn last_position(self: &Self) -> Option<PixelPoint>
    

    The last known position of the pointer, in screen coordinates.

    Source

    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.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.