#[repr(u32)]pub enum Tvg_Colorspace {
TVG_COLORSPACE_ABGR8888 = 0,
TVG_COLORSPACE_ARGB8888 = 1,
TVG_COLORSPACE_ABGR8888S = 2,
TVG_COLORSPACE_ARGB8888S = 3,
TVG_COLORSPACE_UNKNOWN = 255,
}Expand description
@brief Enumeration specifying the methods of combining the 8-bit color channels into 32-bit color.
@ingroup ThorVGCapi_Canvas
Variants§
TVG_COLORSPACE_ABGR8888 = 0
< The channels are joined in the order: alpha, blue, green, red. Colors are alpha-premultiplied.
TVG_COLORSPACE_ARGB8888 = 1
< The channels are joined in the order: alpha, red, green, blue. Colors are alpha-premultiplied.
TVG_COLORSPACE_ABGR8888S = 2
< The channels are joined in the order: alpha, blue, green, red. Colors are un-alpha-premultiplied. (since 0.13)
TVG_COLORSPACE_ARGB8888S = 3
< The channels are joined in the order: alpha, red, green, blue. Colors are un-alpha-premultiplied. (since 0.13)
TVG_COLORSPACE_UNKNOWN = 255
< Unknown channel data. This is reserved for an initial ColorSpace value. (since 1.0)
Trait Implementations§
Source§impl Clone for Tvg_Colorspace
impl Clone for Tvg_Colorspace
Source§fn clone(&self) -> Tvg_Colorspace
fn clone(&self) -> Tvg_Colorspace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Tvg_Colorspace
impl Debug for Tvg_Colorspace
Source§impl Hash for Tvg_Colorspace
impl Hash for Tvg_Colorspace
Source§impl PartialEq for Tvg_Colorspace
impl PartialEq for Tvg_Colorspace
Source§fn eq(&self, other: &Tvg_Colorspace) -> bool
fn eq(&self, other: &Tvg_Colorspace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Tvg_Colorspace
impl Eq for Tvg_Colorspace
impl StructuralPartialEq for Tvg_Colorspace
Auto Trait Implementations§
impl Freeze for Tvg_Colorspace
impl RefUnwindSafe for Tvg_Colorspace
impl Send for Tvg_Colorspace
impl Sync for Tvg_Colorspace
impl Unpin for Tvg_Colorspace
impl UnsafeUnpin for Tvg_Colorspace
impl UnwindSafe for Tvg_Colorspace
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