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.
Members
surfacesmouse_devicedisposedesktop_scalingpoint_to_clientpoint_to_screenset_cursortry_get_feature
surfaces
fn surfaces(self: &Self) -> Vec<std::sync::Arc<dyn IPlatformRenderSurface>>
The surfaces the top-level is rendered to.
mouse_device
fn mouse_device(self: &Self) -> Rc<dyn IMouseDevice>
The mouse device of the top-level.
dispose
fn dispose(self: &Self, base: &OffscreenTopLevelImplBase)
Disposes the implementation. An override calls
OffscreenTopLevelImplBase::base_dispose, as this does.
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.
point_to_client
fn point_to_client(self: &Self, point: PixelPoint) -> Point
Converts a point from screen to client coordinates.
point_to_screen
fn point_to_screen(self: &Self, point: Point) -> PixelPoint
Converts a point from client to screen coordinates.
set_cursor
fn set_cursor(self: &Self, _cursor: Option<Rc<dyn ICursorImpl>>)
Sets the cursor associated with the top-level; ignored by default.
try_get_feature
fn try_get_feature(self: &Self, _feature_type: TypeId) -> Option<Rc<dyn Any>>
Queries for an optional feature; none by default.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.