pub type BrushRef<'a> = Brush<ImageBrushRef<'a>, &'a Gradient>;Expand description
Reference to a brush.
This is useful for methods that would like to accept brushes by reference. Defining
the type as impl Into<BrushRef> allows accepting types like &Gradient
directly without cloning or allocating.
Aliased Type§
pub enum BrushRef<'a> {
Solid(AlphaColor<Srgb>),
Gradient(&'a Gradient),
Image(ImageBrush<&'a ImageData>),
}Variants§
Solid(AlphaColor<Srgb>)
Solid color brush.
Gradient(&'a Gradient)
Gradient brush.
Image(ImageBrush<&'a ImageData>)
Image brush.