[−][src]Struct nuki::StyleItem
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]
pub fn as_mut(&mut self) -> &mut nk_style_item
[src]
impl AsRef<StyleItem> for nk_style_item
[src]
impl AsRef<nk_style_item> for StyleItem
[src]
pub fn as_ref(&self) -> &nk_style_item
[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.
pub fn try_from(value: StyleItem) -> Result<Self, Self::Error>
[src]
impl TryFrom<StyleItem> for Color
[src]
Auto Trait Implementations
impl RefUnwindSafe for StyleItem
[src]
impl !Send for StyleItem
[src]
impl !Sync for StyleItem
[src]
impl Unpin for StyleItem
[src]
impl UnwindSafe for StyleItem
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,