[][src]Struct nuki_sys::nk_color

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

Fields

r: nk_byteg: nk_byteb: nk_bytea: nk_byte

Implementations

impl nk_color[src]

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

pub fn rgb_f(r: f32, g: f32, b: f32) -> Self[src]

Trait Implementations

impl Clone for nk_color[src]

impl Copy for nk_color[src]

impl Debug for nk_color[src]

impl Default for nk_color[src]

impl Eq for nk_color[src]

impl From<[u8; 4]> for nk_color[src]

impl From<(f32, f32, f32, f32)> for nk_color[src]

impl From<(u8, u8, u8, u8)> for nk_color[src]

impl From<nk_color> for u32[src]

impl From<nk_color> for [u8; 4][src]

impl From<nk_color> for (u8, u8, u8, u8)[src]

impl From<nk_color> for (f32, f32, f32, f32)[src]

impl From<u32> for nk_color[src]

impl PartialEq<nk_color> for nk_color[src]

impl StructuralEq for nk_color[src]

impl StructuralPartialEq for nk_color[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> 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.