[][src]Struct skia_safe::Color4f

#[repr(C)]
pub struct Color4f {
    pub r: f32,
    pub g: f32,
    pub b: f32,
    pub a: f32,
}

Fields

r: f32g: f32b: f32a: f32

Methods

impl Color4f[src]

pub const fn new(r: f32, g: f32, b: f32, a: f32) -> Color4f[src]

pub fn as_array(&self) -> &[f32; 4][src]

pub fn as_array_mut(&mut self) -> &mut [f32; 4][src]

pub fn is_opaque(&self) -> bool[src]

pub fn fits_in_bytes(&self) -> bool[src]

pub fn to_color(&self) -> Color[src]

pub fn to_opaque(&self) -> Self[src]

Trait Implementations

impl Clone for Color4f[src]

impl PartialEq<Color4f> for Color4f[src]

impl AsRef<Color4f> for Color4f[src]

impl From<Color> for Color4f[src]

impl Mul<f32> for Color4f[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Color4f> for Color4f[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<&'_ Color4f> for Color4f[src]

type Output = Self

The resulting type after applying the * operator.

impl Index<usize> for Color4f[src]

type Output = f32

The returned type after indexing.

impl IndexMut<usize> for Color4f[src]

impl Debug for Color4f[src]

Auto Trait Implementations

impl Send for Color4f

impl Unpin for Color4f

impl Sync for Color4f

impl UnwindSafe for Color4f

impl RefUnwindSafe for Color4f

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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