FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BrowserRenderer

    enum · ferroui-browser · v0.5.0

    enum BrowserRenderer
    

    The render backend a module draws with.

    Not in the original, which has one backend. The rendering modes (BrowserRenderingMode) keep their meaning with either: they say what the canvas of a view is (the canvas of a WebGL context, a 2D canvas), and the backend draws to it with what it has for that kind of canvas.

    mode Skia Vello
    WebGL2 Ganesh the hybrid mode (vello_gpu over the WebGL2 context)
    WebGL1 Ganesh not drawn: the mode is taken out of the list
    Software2D Skia raster the CPU mode (vello_cpu)

    View source

    Members

    Skia

    Skia
    

    The Skia backend.

    Source

    Vello

    Vello
    

    The Vello backend. The module has to be built with the feature vello of this crate.

    Source

    parse

    fn parse(name: &str) -> Option<BrowserRenderer>
    

    The backend with the given name, ignoring case.

    Source

    name

    fn name(self: Self) -> &'static str
    

    The name of the backend.

    Source

    is_available

    fn is_available(self: Self) -> bool
    

    Whether the module was built with the backend.

    Source

    rendering_modes

    fn rendering_modes(self: Self, modes: &[BrowserRenderingMode]) -> Vec<BrowserRenderingMode>
    

    The rendering modes of modes the backend draws, in their order. The Vello backend has no renderer for WebGL 1; a list that asks for nothing else is drawn in memory.

    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
    • Upcast<T>
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for wasm32-unknown-emscripten, aarch64-apple-darwin. Cargo features are listed in the crate index.