logo
pub struct Backend { /* private fields */ }
Expand description

A wgpu graphics backend for iced.

Implementations

Creates a new Backend.

Draws the provided primitives in the given TextureView.

The text provided as overlay will be rendered on top of the primitives. This is useful for rendering debug information.

Trait Implementations

Trims the measurements cache. Read more

Formats the value using the given formatter. Read more

Returns the dimensions of the provided image.

Returns the viewport dimensions of the provided SVG.

The icon font of the backend.

The char representing a ✔ icon in the ICON_FONT. Read more

The char representing a ▼ icon in the built-in ICON_FONT. Read more

Returns the default size of text.

Measures the text contents with the given size and font, returning the size of a laid out paragraph that fits in the provided bounds. Read more

Tests whether the provided point is within the boundaries of Text laid out with the given parameters, returning information about the nearest character. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.