OffscreenTopLevelImplBase
struct · ferroui-controls · v0.5.0
struct OffscreenTopLevelImplBase
The base of the top-level implementations that are not backed by a window of the platform: the client size and the scaling are set by the owner, which also feeds the input and provides the surfaces.
This API is unstable.
Members
newoverridesinput_rootis_disposedbase_disposecompositorclient_sizeframe_sizeset_client_sizerender_scalingset_render_scalingmouse_device
new
fn new(overrides: Rc<dyn OffscreenTopLevelImplOverrides>) -> Rc<Self>
Creates the implementation over the members of the deriving class, with a compositor of its own.
overrides
fn overrides(self: &Self) -> &Rc<dyn OffscreenTopLevelImplOverrides>
The members of the deriving class.
input_root
fn input_root(self: &Self) -> Option<Rc<dyn IInputRoot>>
The input root the top-level set.
is_disposed
fn is_disposed(self: &Self) -> bool
Whether the implementation has been disposed.
base_dispose
fn base_dispose(self: &Self)
The Dispose of the base class.
compositor
fn compositor(self: &Self) -> &Rc<Compositor>
The compositor of the top-level.
client_size
fn client_size(self: &Self) -> Size
The client size of the top-level.
frame_size
fn frame_size(self: &Self) -> Option<Size>
The size of the frame of the top-level: an offscreen top-level has none.
set_client_size
fn set_client_size(self: &Self, value: Size)
Sets the client size and notifies the top-level.
render_scaling
fn render_scaling(self: &Self) -> f64
The scaling factor of the top-level.
set_render_scaling
fn set_render_scaling(self: &Self, value: f64)
Sets the scaling factor and notifies the top-level.
mouse_device
fn mouse_device(self: &Self) -> Rc<dyn IMouseDevice>
The mouse device of the top-level.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherIDisposableIOptionalFeatureProviderITopLevelImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.