[][src]Struct nuki::StyleItem

#[repr(C)]pub struct StyleItem { /* fields omitted */ }

Implementations

impl StyleItem[src]

pub fn image(img: Image) -> StyleItem[src]

pub fn color(col: Color) -> StyleItem[src]

pub fn color_rgb(r: i32, g: i32, b: i32) -> Self[src]

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

pub fn color_rgb_bv(bv: &u8) -> Self[src]

pub fn color_rgba(r: i32, g: i32, b: i32, a: i32) -> Self[src]

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

pub fn color_rgba_bv(bv: &u8) -> Self[src]

pub fn color_hsv(h: i32, s: i32, v: i32) -> Self[src]

pub fn color_hsv_f(h: f32, s: f32, v: f32) -> Self[src]

pub fn color_hsv_bv(bv: &u8) -> Self[src]

pub fn color_hsva(h: i32, s: i32, v: i32, a: i32) -> Self[src]

pub fn color_hsva_f(h: f32, s: f32, v: f32, a: f32) -> Self[src]

pub fn color_hsva_bv(bv: &u8) -> Self[src]

pub fn hide() -> StyleItem[src]

Trait Implementations

impl AsMut<StyleItem> for nk_style_item[src]

impl AsMut<nk_style_item> for StyleItem[src]

impl AsRef<StyleItem> for nk_style_item[src]

impl AsRef<nk_style_item> for StyleItem[src]

impl Clone for StyleItem[src]

impl Default for StyleItem[src]

impl TryFrom<StyleItem> for Image[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<StyleItem> for Color[src]

type Error = &'static str

The type returned in the event of a conversion error.

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.