[−][src]Struct skia_bindings::SkColorSpace
Fields
_base: SkNVRefCnt
fTransferFnHash: u32
fToXYZD50Hash: u32
fTransferFn: [f32; 7]
fToXYZD50_3x3: [f32; 9]
fInvTransferFn: [f32; 7]
fFromXYZD50_3x3: [f32; 9]
fLazyDstFieldsOnce: SkOnce
Methods
impl SkColorSpace
[src]
pub unsafe fn MakeSRGB() -> sk_sp<SkColorSpace>
[src]
pub unsafe fn MakeSRGBLinear() -> sk_sp<SkColorSpace>
[src]
pub unsafe fn MakeRGB(
transferFn: *const skcms_TransferFunction,
toXYZ: *const skcms_Matrix3x3
) -> sk_sp<SkColorSpace>
[src]
transferFn: *const skcms_TransferFunction,
toXYZ: *const skcms_Matrix3x3
) -> sk_sp<SkColorSpace>
pub unsafe fn Make(arg1: *const skcms_ICCProfile) -> sk_sp<SkColorSpace>
[src]
pub unsafe fn toProfile(&self, arg1: *mut skcms_ICCProfile)
[src]
pub unsafe fn gammaCloseToSRGB(&self) -> bool
[src]
pub unsafe fn gammaIsLinear(&self) -> bool
[src]
pub unsafe fn isNumericalTransferFn(
&self,
fn_: *mut skcms_TransferFunction
) -> bool
[src]
&self,
fn_: *mut skcms_TransferFunction
) -> bool
pub unsafe fn toXYZD50(&self, toXYZD50: *mut SkMatrix44) -> bool
[src]
pub unsafe fn toXYZD501(&self, toXYZD50: *mut skcms_Matrix3x3) -> bool
[src]
pub unsafe fn makeLinearGamma(&self) -> sk_sp<SkColorSpace>
[src]
pub unsafe fn makeSRGBGamma(&self) -> sk_sp<SkColorSpace>
[src]
pub unsafe fn makeColorSpin(&self) -> sk_sp<SkColorSpace>
[src]
pub unsafe fn isSRGB(&self) -> bool
[src]
pub unsafe fn serialize(&self) -> sk_sp<SkData>
[src]
pub unsafe fn writeToMemory(&self, memory: *mut c_void) -> usize
[src]
pub unsafe fn Deserialize(
data: *const c_void,
length: usize
) -> sk_sp<SkColorSpace>
[src]
data: *const c_void,
length: usize
) -> sk_sp<SkColorSpace>
pub unsafe fn Equals(
arg1: *const SkColorSpace,
arg2: *const SkColorSpace
) -> bool
[src]
arg1: *const SkColorSpace,
arg2: *const SkColorSpace
) -> bool
pub unsafe fn transferFn(&self, gabcdef: *mut f32)
[src]
pub unsafe fn invTransferFn(&self, gabcdef: *mut f32)
[src]
pub unsafe fn gamutTransformTo(
&self,
dst: *const SkColorSpace,
src_to_dst_row_major: *mut f32
)
[src]
&self,
dst: *const SkColorSpace,
src_to_dst_row_major: *mut f32
)
Auto Trait Implementations
impl Send for SkColorSpace
impl Unpin for SkColorSpace
impl Sync for SkColorSpace
impl RefUnwindSafe for SkColorSpace
impl UnwindSafe for SkColorSpace
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,