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 CoercionRules for Fill
impl CoercionRules for Fill
Source§impl<'de> Deserialize<'de> for Fill
impl<'de> Deserialize<'de> for Fill
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HelperFunctions for Fill
impl HelperFunctions for Fill
Source§impl Interpolatable for Fill
impl Interpolatable for Fill
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl ToPaxValue for Fill
impl ToPaxValue for Fill
fn to_pax_value(self) -> PaxValue
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 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.