SharedBrush
struct · ferroui-base · v0.5.0
struct SharedBrush
The values of an immutable brush, shared between the UI thread and the render thread. See the module documentation.
Members
from_brush
fn from_brush(brush: &dyn IBrush) -> Option<SharedBrush>
Copies the values of brush. None for a brush that is none of the
kinds a render backend draws from values (a solid colour, a gradient,
an image).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneIBrushIImmutableBrushISolidColorBrushIGradientBrushILinearGradientBrushIRadialGradientBrushIConicGradientBrushITileBrushIImageBrushDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.