#[repr(C)]pub struct StyleToggle { /* private fields */ }
Implementations§
Source§impl StyleToggle
impl StyleToggle
pub fn normal(&self) -> &StyleItem
pub fn hover(&self) -> &StyleItem
pub fn active(&self) -> &StyleItem
pub fn border_color(&self) -> &Color
pub fn cursor_normal(&self) -> &StyleItem
pub fn cursor_hover(&self) -> &StyleItem
pub fn text_normal(&self) -> &Color
pub fn text_hover(&self) -> &Color
pub fn text_active(&self) -> &Color
pub fn text_background(&self) -> &Color
pub fn text_alignment(&self) -> u32
pub fn spacing(&self) -> f32
pub fn border(&self) -> f32
pub fn padding(&self) -> &Vec2
pub fn touch_padding(&self) -> &Vec2
pub fn set_normal(&mut self, i: StyleItem)
pub fn set_hover(&mut self, i: StyleItem)
pub fn set_active(&mut self, i: StyleItem)
pub fn set_border_color(&mut self, c: Color)
pub fn set_cursor_normal(&mut self, i: StyleItem)
pub fn set_cursor_hover(&mut self, i: StyleItem)
pub fn set_text_background(&mut self, c: Color)
pub fn set_text_normal(&mut self, c: Color)
pub fn set_text_hover(&mut self, c: Color)
pub fn set_text_active(&mut self, c: Color)
pub fn set_text_alignment(&mut self, c: u32)
pub fn set_spacing(&mut self, v: f32)
pub fn set_border(&mut self, v: f32)
pub fn set_padding(&mut self, v: Vec2)
pub fn set_touch_padding(&mut self, v: Vec2)
Trait Implementations§
Source§impl AsMut<StyleToggle> for nk_style_toggle
impl AsMut<StyleToggle> for nk_style_toggle
Source§fn as_mut(&mut self) -> &mut StyleToggle
fn as_mut(&mut self) -> &mut StyleToggle
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<nk_style_toggle> for StyleToggle
impl AsMut<nk_style_toggle> for StyleToggle
Source§fn as_mut(&mut self) -> &mut nk_style_toggle
fn as_mut(&mut self) -> &mut nk_style_toggle
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<StyleToggle> for nk_style_toggle
impl AsRef<StyleToggle> for nk_style_toggle
Source§fn as_ref(&self) -> &StyleToggle
fn as_ref(&self) -> &StyleToggle
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<nk_style_toggle> for StyleToggle
impl AsRef<nk_style_toggle> for StyleToggle
Source§fn as_ref(&self) -> &nk_style_toggle
fn as_ref(&self) -> &nk_style_toggle
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for StyleToggle
impl Clone for StyleToggle
Source§fn clone(&self) -> StyleToggle
fn clone(&self) -> StyleToggle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for StyleToggle
impl RefUnwindSafe for StyleToggle
impl !Send for StyleToggle
impl !Sync for StyleToggle
impl Unpin for StyleToggle
impl UnwindSafe for StyleToggle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more