Struct skia_safe::shader::GradientInfo
source · pub struct GradientInfo<'a> {
pub colors: &'a [Color],
pub color_offsets: &'a [scalar],
pub tile_mode: TileMode,
pub gradient_flags: Flags,
}
Fields§
§colors: &'a [Color]
§color_offsets: &'a [scalar]
§tile_mode: TileMode
§gradient_flags: Flags
Implementations§
source§impl<'a> GradientInfo<'a>
impl<'a> GradientInfo<'a>
pub fn color_count(&self) -> usize
Trait Implementations§
source§impl<'a> Clone for GradientInfo<'a>
impl<'a> Clone for GradientInfo<'a>
source§fn clone(&self) -> GradientInfo<'a>
fn clone(&self) -> GradientInfo<'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 moresource§impl<'a> Debug for GradientInfo<'a>
impl<'a> Debug for GradientInfo<'a>
source§impl<'a> PartialEq<GradientInfo<'a>> for GradientInfo<'a>
impl<'a> PartialEq<GradientInfo<'a>> for GradientInfo<'a>
source§fn eq(&self, other: &GradientInfo<'a>) -> bool
fn eq(&self, other: &GradientInfo<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for GradientInfo<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for GradientInfo<'a>
impl<'a> Send for GradientInfo<'a>
impl<'a> Sync for GradientInfo<'a>
impl<'a> Unpin for GradientInfo<'a>
impl<'a> UnwindSafe for GradientInfo<'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