Struct nuklear_rust::NkStyleToggle
[−]
[src]
#[repr(C)]pub struct NkStyleToggle { /* fields omitted */ }
Methods
impl NkStyleToggle[src]
fn normal(&self) -> &NkStyleItem
fn hover(&self) -> &NkStyleItem
fn active(&self) -> &NkStyleItem
fn border_color(&self) -> &NkColor
fn cursor_normal(&self) -> &NkStyleItem
fn cursor_hover(&self) -> &NkStyleItem
fn text_normal(&self) -> &NkColor
fn text_hover(&self) -> &NkColor
fn text_active(&self) -> &NkColor
fn text_background(&self) -> &NkColor
fn text_alignment(&self) -> u32
fn spacing(&self) -> f32
fn border(&self) -> f32
fn padding(&self) -> &NkVec2
fn touch_padding(&self) -> &NkVec2
fn set_normal(&mut self, i: NkStyleItem)
fn set_hover(&mut self, i: NkStyleItem)
fn set_active(&mut self, i: NkStyleItem)
fn set_border_color(&mut self, c: NkColor)
fn set_cursor_normal(&mut self, i: NkStyleItem)
fn set_cursor_hover(&mut self, i: NkStyleItem)
fn set_text_background(&mut self, c: NkColor)
fn set_text_normal(&mut self, c: NkColor)
fn set_text_hover(&mut self, c: NkColor)
fn set_text_active(&mut self, c: NkColor)
fn set_text_alignment(&mut self, c: u32)
fn set_spacing(&mut self, v: f32)
fn set_border(&mut self, v: f32)
fn set_padding(&mut self, v: NkVec2)
fn set_touch_padding(&mut self, v: NkVec2)
Trait Implementations
impl Clone for NkStyleToggle[src]
fn clone(&self) -> NkStyleToggle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl AsRef<nk_style_toggle> for NkStyleToggle[src]
fn as_ref(&self) -> &nk_style_toggle
Performs the conversion.
impl AsMut<nk_style_toggle> for NkStyleToggle[src]
fn as_mut(&mut self) -> &mut nk_style_toggle
Performs the conversion.