Struct 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,
/* private fields */
}
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.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)