Struct owned_ttf_parser::colr::SweepGradient
source · pub struct SweepGradient<'a> {
pub center_x: f32,
pub center_y: f32,
pub start_angle: f32,
pub end_angle: f32,
pub extend: GradientExtend,
variation_data: VariationData<'a>,
color_line: ColorLine<'a>,
}
Expand description
Fields§
§center_x: f32
The x of the center.
center_y: f32
The y of the center.
start_angle: f32
The start angle.
end_angle: f32
The end angle.
extend: GradientExtend
The extend.
variation_data: VariationData<'a>
§color_line: ColorLine<'a>
Implementations§
source§impl<'a> SweepGradient<'a>
impl<'a> SweepGradient<'a>
sourcepub fn stops<'b>(
&'b self,
palette: u16,
coords: &'a [NormalizedCoordinate],
) -> GradientStopsIter<'a, 'b> ⓘ
pub fn stops<'b>( &'b self, palette: u16, coords: &'a [NormalizedCoordinate], ) -> GradientStopsIter<'a, 'b> ⓘ
Returns an iterator over the stops of the sweep gradient. Stops need to be sorted manually by the caller.
Trait Implementations§
source§impl<'a> Clone for SweepGradient<'a>
impl<'a> Clone for SweepGradient<'a>
source§fn clone(&self) -> SweepGradient<'a>
fn clone(&self) -> SweepGradient<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for SweepGradient<'a>
impl<'a> RefUnwindSafe for SweepGradient<'a>
impl<'a> Send for SweepGradient<'a>
impl<'a> Sync for SweepGradient<'a>
impl<'a> Unpin for SweepGradient<'a>
impl<'a> UnwindSafe for SweepGradient<'a>
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