FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    OffscreenTopLevelImplOverrides

    trait · ferroui-controls · v0.5.0

    trait OffscreenTopLevelImplOverrides
    

    The abstract and the overridable members of an offscreen top-level implementation: what a class deriving from OffscreenTopLevelImplBase provides.

    This API is unstable.

    View source

    Members

    surfaces

    fn surfaces(self: &Self) -> Vec<std::sync::Arc<dyn IPlatformRenderSurface>>
    

    The surfaces the top-level is rendered to.

    Source

    mouse_device

    fn mouse_device(self: &Self) -> Rc<dyn IMouseDevice>
    

    The mouse device of the top-level.

    Source

    dispose

    fn dispose(self: &Self, base: &OffscreenTopLevelImplBase)
    

    Disposes the implementation. An override calls OffscreenTopLevelImplBase::base_dispose, as this does.

    Source

    desktop_scaling

    fn desktop_scaling(self: &Self, base: &OffscreenTopLevelImplBase) -> f64
    

    The scaling of the desktop the top-level is on; the render scaling by default.

    Source

    point_to_client

    fn point_to_client(self: &Self, point: PixelPoint) -> Point
    

    Converts a point from screen to client coordinates.

    Source

    point_to_screen

    fn point_to_screen(self: &Self, point: Point) -> PixelPoint
    

    Converts a point from client to screen coordinates.

    Source

    set_cursor

    fn set_cursor(self: &Self, _cursor: Option<Rc<dyn ICursorImpl>>)
    

    Sets the cursor associated with the top-level; ignored by default.

    Source

    try_get_feature

    fn try_get_feature(self: &Self, _feature_type: TypeId) -> Option<Rc<dyn Any>>
    

    Queries for an optional feature; none by default.

    Source

    Availability

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