pub struct RadialGradient {
pub fx: f32,
pub fy: f32,
pub fr: f32,
pub cx: f32,
pub cy: f32,
pub cr: f32,
pub transform: Transform,
pub spread_method: SpreadMethod,
pub stops: Vec<Stop>,
pub anti_alias: bool,
}Expand description
A radial gradient.
Fields§
§fx: f32The x coordinate of the start circle.
fy: f32The y coordinate of the start circle.
fr: f32The radius of the start circle.
cx: f32The x coordinate of the end circle.
cy: f32The y coordinate of the end circle.
cr: f32The radius of the end circle.
transform: TransformA transform that should be applied to the radial gradient.
spread_method: SpreadMethodThe spread method of the radial gradient.
Note: The spread methods Repeat/Reflect are currently not supported
for radial gradients, and will fall back to Pad.
stops: Vec<Stop>The color stops of the radial gradient.
Note that all stops need to be in the same color space.
anti_alias: boolWhether the gradient should be anti-aliased.
Trait Implementations§
Source§impl Clone for RadialGradient
impl Clone for RadialGradient
Source§fn clone(&self) -> RadialGradient
fn clone(&self) -> RadialGradient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RadialGradient
impl Debug for RadialGradient
impl Eq for RadialGradient
Source§impl From<RadialGradient> for Paint
impl From<RadialGradient> for Paint
Source§fn from(value: RadialGradient) -> Self
fn from(value: RadialGradient) -> Self
Converts to this type from the input type.
Source§impl Hash for RadialGradient
impl Hash for RadialGradient
Source§impl PartialEq for RadialGradient
impl PartialEq for RadialGradient
impl StructuralPartialEq for RadialGradient
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.