Struct Interpolation
#[repr(C)]pub struct Interpolation {
pub in_premul: SkGradient_Interpolation_InPremul,
pub color_space: SkGradient_Interpolation_ColorSpace,
pub hue_method: SkGradient_Interpolation_HueMethod,
}Expand description
Gradient interpolation settings.
Specifies how colors are interpolated in a gradient, including the color space and premultiplication mode.
Fields§
§in_premul: SkGradient_Interpolation_InPremul§color_space: SkGradient_Interpolation_ColorSpace§hue_method: SkGradient_Interpolation_HueMethodImplementations§
§impl Interpolation
impl Interpolation
pub fn from_flags(flags: u32) -> Interpolation
pub fn from_flags(flags: u32) -> Interpolation
Create interpolation settings from legacy flags.
Trait Implementations§
§impl Clone for Interpolation
impl Clone for Interpolation
§fn clone(&self) -> Interpolation
fn clone(&self) -> Interpolation
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 more§impl Debug for Interpolation
impl Debug for Interpolation
§impl Default for Interpolation
impl Default for Interpolation
§fn default() -> Interpolation
fn default() -> Interpolation
Returns the “default value” for a type. Read more
§impl From<Flags> for Interpolation
impl From<Flags> for Interpolation
§fn from(flags: Flags) -> Interpolation
fn from(flags: Flags) -> Interpolation
Converts to this type from the input type.
§impl Hash for Interpolation
impl Hash for Interpolation
§impl PartialEq for Interpolation
impl PartialEq for Interpolation
impl Copy for Interpolation
impl Eq for Interpolation
impl StructuralPartialEq for Interpolation
Auto Trait Implementations§
impl Freeze for Interpolation
impl RefUnwindSafe for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Unpin for Interpolation
impl UnwindSafe for Interpolation
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