pub struct SweepGradient {
pub(crate) base: Gradient,
t0: f32,
t1: f32,
}Expand description
A radial gradient.
Fields§
§base: Gradient§t0: f32§t1: f32Implementations§
Source§impl SweepGradient
impl SweepGradient
Sourcepub fn new(
center: Point,
start_angle: f32,
end_angle: f32,
stops: Vec<GradientStop>,
mode: SpreadMode,
transform: Transform,
) -> Option<Shader<'static>>
pub fn new( center: Point, start_angle: f32, end_angle: f32, stops: Vec<GradientStop>, mode: SpreadMode, transform: Transform, ) -> Option<Shader<'static>>
Creates a new 2-point conical gradient shader.
pub(crate) fn is_opaque(&self) -> bool
pub(crate) fn push_stages( &self, cs: ColorSpace, p: &mut RasterPipelineBuilder, ) -> bool
Trait Implementations§
Source§impl Clone for SweepGradient
impl Clone for SweepGradient
Source§fn clone(&self) -> SweepGradient
fn clone(&self) -> SweepGradient
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 SweepGradient
impl Debug for SweepGradient
Source§impl PartialEq for SweepGradient
impl PartialEq for SweepGradient
impl StructuralPartialEq for SweepGradient
Auto Trait Implementations§
impl Freeze for SweepGradient
impl RefUnwindSafe for SweepGradient
impl Send for SweepGradient
impl Sync for SweepGradient
impl Unpin for SweepGradient
impl UnsafeUnpin for SweepGradient
impl UnwindSafe for SweepGradient
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