#[repr(C)]
pub struct SkColorSpace { pub _base: SkNVRefCnt, pub fTransferFnHash: u32, pub fToXYZD50Hash: u32, pub fTransferFn: skcms_TransferFunction, pub fToXYZD50: skcms_Matrix3x3, pub fInvTransferFn: skcms_TransferFunction, pub fFromXYZD50: skcms_Matrix3x3, pub fLazyDstFieldsOnce: SkOnce, }

Fields§

§_base: SkNVRefCnt§fTransferFnHash: u32§fToXYZD50Hash: u32§fTransferFn: skcms_TransferFunction§fToXYZD50: skcms_Matrix3x3§fInvTransferFn: skcms_TransferFunction§fFromXYZD50: skcms_Matrix3x3§fLazyDstFieldsOnce: SkOnce

Implementations§

source§

impl SkColorSpace

source

pub unsafe fn MakeSRGB() -> sk_sp<SkColorSpace>

source

pub unsafe fn MakeSRGBLinear() -> sk_sp<SkColorSpace>

source

pub unsafe fn MakeRGB( transferFn: *const skcms_TransferFunction, toXYZ: *const skcms_Matrix3x3 ) -> sk_sp<SkColorSpace>

source

pub unsafe fn Make(arg1: *const skcms_ICCProfile) -> sk_sp<SkColorSpace>

source

pub unsafe fn toProfile(&self, arg1: *mut skcms_ICCProfile)

source

pub unsafe fn gammaCloseToSRGB(&self) -> bool

source

pub unsafe fn gammaIsLinear(&self) -> bool

source

pub unsafe fn isNumericalTransferFn( &self, fn_: *mut skcms_TransferFunction ) -> bool

source

pub unsafe fn toXYZD50(&self, toXYZD50: *mut skcms_Matrix3x3) -> bool

source

pub unsafe fn makeLinearGamma(&self) -> sk_sp<SkColorSpace>

source

pub unsafe fn makeSRGBGamma(&self) -> sk_sp<SkColorSpace>

source

pub unsafe fn makeColorSpin(&self) -> sk_sp<SkColorSpace>

source

pub unsafe fn isSRGB(&self) -> bool

source

pub unsafe fn serialize(&self) -> sk_sp<SkData>

source

pub unsafe fn writeToMemory(&self, memory: *mut c_void) -> usize

source

pub unsafe fn Deserialize( data: *const c_void, length: usize ) -> sk_sp<SkColorSpace>

source

pub unsafe fn Equals( arg1: *const SkColorSpace, arg2: *const SkColorSpace ) -> bool

source

pub unsafe fn transferFn(&self, gabcdef: *mut f32)

source

pub unsafe fn transferFn1(&self, fn_: *mut skcms_TransferFunction)

source

pub unsafe fn invTransferFn(&self, fn_: *mut skcms_TransferFunction)

source

pub unsafe fn gamutTransformTo( &self, dst: *const SkColorSpace, src_to_dst: *mut skcms_Matrix3x3 )

Trait Implementations§

source§

impl Debug for SkColorSpace

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.