[][src]Struct skia_safe::Color

#[repr(transparent)]
pub struct Color(_);

Methods

impl Color[src]

pub const fn new(argb: u32) -> Self[src]

pub fn from_argb(a: u8, r: u8, g: u8, b: u8) -> Color[src]

pub fn from_rgb(r: u8, g: u8, b: u8) -> Color[src]

pub fn a(self) -> u8[src]

pub fn r(self) -> u8[src]

pub fn g(self) -> u8[src]

pub fn b(self) -> u8[src]

#[must_use] pub fn with_a(self, a: u8) -> Self[src]

pub const TRANSPARENT: Self[src]

pub const BLACK: Self[src]

pub const DARK_GRAY: Self[src]

pub const GRAY: Self[src]

pub const LIGHT_GRAY: Self[src]

pub const WHITE: Self[src]

pub const RED: Self[src]

pub const GREEN: Self[src]

pub const BLUE: Self[src]

pub const YELLOW: Self[src]

pub const CYAN: Self[src]

pub const MAGENTA: Self[src]

pub fn to_rgb(self) -> RGB[src]

pub fn to_hsv(self) -> HSV[src]

Trait Implementations

impl Default for Color[src]

impl Clone for Color[src]

impl PartialEq<Color> for Color[src]

impl From<u32> for Color[src]

impl From<RGB> for Color[src]

impl From<Color> for Color4f[src]

impl Copy for Color[src]

impl BitAnd<Color> for Color[src]

type Output = Self

The resulting type after applying the & operator.

impl BitAnd<u32> for Color[src]

type Output = Self

The resulting type after applying the & operator.

impl BitOr<Color> for Color[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOr<u32> for Color[src]

type Output = Self

The resulting type after applying the | operator.

impl Debug for Color[src]

Auto Trait Implementations

impl Unpin for Color

impl Sync for Color

impl Send for Color

impl UnwindSafe for Color

impl RefUnwindSafe for Color

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]