pub struct RadialGradient {
pub end: (Size, Size),
pub start: (Size, Size),
pub radius: f64,
pub stops: Vec<GradientStop>,
}Expand description
Describes a radial gradient fill with a start and end point, a radius, and a list of color stops.
Pax templates canonically author each point as [x, y]: magic index 0
is the horizontal coordinate and index 1 is the vertical coordinate.
Fields§
§end: (Size, Size)Outer radius endpoint in the primitive’s local coordinate space.
start: (Size, Size)Gradient center point in the primitive’s local coordinate space.
radius: f64Radial gradient radius.
stops: Vec<GradientStop>Ordered color stops along the gradient.
Trait Implementations§
Source§impl Clone for RadialGradient
impl Clone for RadialGradient
Source§impl CoercionRules for RadialGradient
impl CoercionRules for RadialGradient
Source§impl Debug for RadialGradient
impl Debug for RadialGradient
Source§impl<'de> Deserialize<'de> for RadialGradient
impl<'de> Deserialize<'de> for RadialGradient
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 PartialEq for RadialGradient
impl PartialEq for RadialGradient
Source§impl Serialize for RadialGradient
impl Serialize for RadialGradient
impl StructuralPartialEq for RadialGradient
Source§impl ToPaxValue for RadialGradient
impl ToPaxValue for RadialGradient
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a
PaxValue.Auto Trait Implementations§
impl Freeze for RadialGradient
impl RefUnwindSafe for RadialGradient
impl Send for RadialGradient
impl Sync for RadialGradient
impl Unpin for RadialGradient
impl UnsafeUnpin for RadialGradient
impl UnwindSafe for RadialGradient
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.