#[repr(C, packed(1))]pub struct RadialGradientPrimitive {
pub transform: [f32; 6],
pub stop_start: u32,
pub stop_cnt: u32,
pub start_center: [f32; 2],
pub end_center: [f32; 2],
pub start_radius: f32,
pub end_radius: f32,
pub mask_head: i32,
pub spread: u32,
}Fields§
§transform: [f32; 6]A 2x3 column-major matrix, transform a vertex position to the texture position
stop_start: u32The color stop’s start index
stop_cnt: u32The size of the color stop
start_center: [f32; 2]position of the start center
end_center: [f32; 2]position of the end center
start_radius: f32the radius of the start circle.
end_radius: f32the radius of the end circle.
mask_head: i32The index of the head mask layer.
spread: u32the spread method of the gradient. 0 for pad, 1 for reflect and 2 for repeat
Trait Implementations§
Source§impl AsBytes for RadialGradientPrimitive
impl AsBytes for RadialGradientPrimitive
Source§impl Clone for RadialGradientPrimitive
impl Clone for RadialGradientPrimitive
Source§fn clone(&self) -> RadialGradientPrimitive
fn clone(&self) -> RadialGradientPrimitive
Returns a duplicate of the value. Read more
1.0.0 · 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 RadialGradientPrimitive
impl Debug for RadialGradientPrimitive
Source§impl PartialEq for RadialGradientPrimitive
impl PartialEq for RadialGradientPrimitive
impl Copy for RadialGradientPrimitive
impl StructuralPartialEq for RadialGradientPrimitive
Auto Trait Implementations§
impl Freeze for RadialGradientPrimitive
impl RefUnwindSafe for RadialGradientPrimitive
impl Send for RadialGradientPrimitive
impl Sync for RadialGradientPrimitive
impl Unpin for RadialGradientPrimitive
impl UnsafeUnpin for RadialGradientPrimitive
impl UnwindSafe for RadialGradientPrimitive
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more