pub enum Fill {
Solid(Color),
LinearGradient(LinearGradient),
RadialGradient(RadialGradient),
}Expand description
Paint used to fill a shape.
Gradient coordinates are in world units. Renderers may approximate gradients per vertex until a more advanced shader path exists.
Variants§
Solid(Color)
Single color over the whole shape.
LinearGradient(LinearGradient)
Color interpolation along a world-space axis.
RadialGradient(RadialGradient)
Color interpolation outward from a world-space center.
Implementations§
Trait Implementations§
impl Copy for Fill
impl StructuralPartialEq for Fill
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe for Fill
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more