FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    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.

    Source

    overrides

    fn overrides(self: &Self) -> &Rc<dyn OffscreenTopLevelImplOverrides>
    

    The members of the deriving class.

    Source

    input_root

    fn input_root(self: &Self) -> Option<Rc<dyn IInputRoot>>
    

    The input root the top-level set.

    Source

    is_disposed

    fn is_disposed(self: &Self) -> bool
    

    Whether the implementation has been disposed.

    Source

    base_dispose

    fn base_dispose(self: &Self)
    

    The Dispose of the base class.

    Source

    compositor

    fn compositor(self: &Self) -> &Rc<Compositor>
    

    The compositor of the top-level.

    Source

    client_size

    fn client_size(self: &Self) -> Size
    

    The client size of the top-level.

    Source

    frame_size

    fn frame_size(self: &Self) -> Option<Size>
    

    The size of the frame of the top-level: an offscreen top-level has none.

    Source

    set_client_size

    fn set_client_size(self: &Self, value: Size)
    

    Sets the client size and notifies the top-level.

    Source

    render_scaling

    fn render_scaling(self: &Self) -> f64
    

    The scaling factor of the top-level.

    Source

    set_render_scaling

    fn set_render_scaling(self: &Self, value: f64)
    

    Sets the scaling factor and notifies the top-level.

    Source

    mouse_device

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

    The mouse device of the top-level.

    Source

    Trait implementations

    Availability

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