FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    VelloOptions

    struct · ferroui-vello · v0.5.0

    struct VelloOptions
    

    Options for the Vello rendering subsystem.

    View source

    Members

    rendering_modes

    rendering_modes: [Option<VelloRenderingMode>; 3]
    

    The rendering modes in the order they are tried: the first one that is available draws. None ends the list.

    The hybrid and the GPU mode draw the window of a platform that renders on a graphics device, and each is available when the crate was built with its feature (hybrid, gpu) and the device runs it. What is drawn into memory (render target bitmaps, layers, the framebuffer of a platform that renders in software) is drawn by the CPU mode whenever the list has it, wherever it stands: a scene that ends as pixels in memory gains nothing from a round over the GPU. A list without the CPU mode draws those in its GPU modes too, and has no mode that can draw on a machine without a graphics device.

    Source

    use_opacity_save_layer

    use_opacity_save_layer: bool
    

    Use a layer to apply opacity, so that every visual is rendered to its own layer when opacity is applied.

    Source

    new

    fn new() -> Self
    

    Creates the default options.

    Source

    with_rendering_mode

    fn with_rendering_mode(mode: VelloRenderingMode) -> Self
    

    The options with one rendering mode and no other to fall back to.

    Source

    rendering_mode_order

    fn rendering_mode_order(self: &Self) -> Vec<VelloRenderingMode>
    

    The rendering modes in the order they are tried.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • SimdFrom<T, S>
    • SimdInto<T, S>
    • Equivalent<K>
    • Pointable
    • AutoreleaseSafe
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Default

    Availability

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