[][src]Struct azul_webrender_api::PremultipliedColorF

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

Represents pre-multiplied RGBA colors with floating point numbers.

All components must be between 0.0 and 1.0. An alpha value of 1.0 is opaque while 0.0 is fully transparent.

In premultiplied colors transitions to transparent always look "nice" therefore they are used in CSS gradients.

Fields

r: f32g: f32b: f32a: f32

Implementations

impl PremultipliedColorF[src]

Trait Implementations

impl Clone for PremultipliedColorF[src]

impl Copy for PremultipliedColorF[src]

impl Debug for PremultipliedColorF[src]

impl<'de> Deserialize<'de> for PremultipliedColorF[src]

impl Eq for PremultipliedColorF[src]

impl Hash for PremultipliedColorF[src]

impl Ord for PremultipliedColorF[src]

impl PartialEq<PremultipliedColorF> for PremultipliedColorF[src]

impl PartialOrd<PremultipliedColorF> for PremultipliedColorF[src]

impl Serialize for PremultipliedColorF[src]

impl StructuralPartialEq for PremultipliedColorF[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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, 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.