[−][src]Struct skia_safe::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 Debug for Color
[src]
impl BitAnd<Color> for Color
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self) -> Self::Output
[src]
impl BitAnd<u32> for Color
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: u32) -> Self::Output
[src]
impl BitOr<Color> for Color
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self::Output
[src]
impl BitOr<u32> for Color
[src]
Auto Trait Implementations
impl Send for Color
impl Unpin for Color
impl Sync for Color
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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,