pub enum Fill {
Solid(Color),
LinearGradient(LinearGradient),
RadialGradient(RadialGradient),
}Variants§
Implementations§
source§impl Fill
impl Fill
pub fn to_unit_point( (x, y): (Size, Size), (width, height): (f64, f64) ) -> UnitPoint
pub fn to_piet_gradient_stops(stops: Vec<GradientStop>) -> Vec<GradientStop>
pub fn linearGradient( start: (Size, Size), end: (Size, Size), stops: Vec<GradientStop> ) -> Fill
Trait Implementations§
source§impl Interpolatable for Fill
impl Interpolatable for Fill
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin 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
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.