pub trait VectorBuilder: Sized {
// Required methods
fn tint<M>(self, color: impl IntoReactive<Color, M>) -> Self;
fn weight(self, w: VectorWeight) -> Self;
fn decorative(self) -> Self;
fn template(self) -> Self;
}Expand description
Required Methods§
Sourcefn tint<M>(self, color: impl IntoReactive<Color, M>) -> Self
fn tint<M>(self, color: impl IntoReactive<Color, M>) -> Self
Recolor the glyph (monochrome art) where the backend supports tinting.
Takes a plain Color or anything reactive: a signal or closure repaints
the realized glyph through ImagePatch::Tint instead of
rebuilding it, so a glyph that follows the selection or the theme keeps its native view.
Sourcefn weight(self, w: VectorWeight) -> Self
fn weight(self, w: VectorWeight) -> Self
Select the glyph’s weight (template-form sources render true weights; plain SVGs
degrade to Regular; see VectorWeight).
Sourcefn decorative(self) -> Self
fn decorative(self) -> Self
Mark the glyph decorative (hidden from accessibility).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".