#[repr(C)]pub struct StyleSelectable { /* private fields */ }
Implementations§
Source§impl StyleSelectable
impl StyleSelectable
pub fn normal(&self) -> &StyleItem
pub fn hover(&self) -> &StyleItem
pub fn pressed(&self) -> &StyleItem
pub fn normal_active(&self) -> &StyleItem
pub fn hover_active(&self) -> &StyleItem
pub fn pressed_active(&self) -> &StyleItem
pub fn text_normal(&self) -> &Color
pub fn text_hover(&self) -> &Color
pub fn text_pressed(&self) -> &Color
pub fn text_normal_active(&self) -> &Color
pub fn text_hover_active(&self) -> &Color
pub fn text_pressed_active(&self) -> &Color
pub fn text_background(&self) -> &Color
pub fn text_alignment(&self) -> u32
pub fn rounding(&self) -> f32
pub fn padding(&self) -> &Vec2
pub fn touch_padding(&self) -> &Vec2
pub fn image_padding(&self) -> &Vec2
pub fn set_normal(&mut self, i: StyleItem)
pub fn set_hover(&mut self, i: StyleItem)
pub fn set_pressed(&mut self, i: StyleItem)
pub fn set_normal_active(&mut self, i: StyleItem)
pub fn set_hover_active(&mut self, i: StyleItem)
pub fn set_pressed_active(&mut self, i: StyleItem)
pub fn set_text_normal(&mut self, c: Color)
pub fn set_text_hover(&mut self, c: Color)
pub fn set_text_pressed(&mut self, c: Color)
pub fn set_text_normal_active(&mut self, c: Color)
pub fn set_text_hover_active(&mut self, c: Color)
pub fn set_text_pressed_active(&mut self, c: Color)
pub fn set_text_background(&mut self, c: Color)
pub fn set_text_alignment(&mut self, v: u32)
pub fn set_rounding(&mut self, v: f32)
pub fn set_padding(&mut self, v: Vec2)
pub fn set_touch_padding(&mut self, v: Vec2)
pub fn set_image_padding(&mut self, v: Vec2)
Trait Implementations§
Source§impl AsMut<StyleSelectable> for nk_style_selectable
impl AsMut<StyleSelectable> for nk_style_selectable
Source§fn as_mut(&mut self) -> &mut StyleSelectable
fn as_mut(&mut self) -> &mut StyleSelectable
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<nk_style_selectable> for StyleSelectable
impl AsMut<nk_style_selectable> for StyleSelectable
Source§fn as_mut(&mut self) -> &mut nk_style_selectable
fn as_mut(&mut self) -> &mut nk_style_selectable
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<StyleSelectable> for nk_style_selectable
impl AsRef<StyleSelectable> for nk_style_selectable
Source§fn as_ref(&self) -> &StyleSelectable
fn as_ref(&self) -> &StyleSelectable
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<nk_style_selectable> for StyleSelectable
impl AsRef<nk_style_selectable> for StyleSelectable
Source§fn as_ref(&self) -> &nk_style_selectable
fn as_ref(&self) -> &nk_style_selectable
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for StyleSelectable
impl Clone for StyleSelectable
Source§fn clone(&self) -> StyleSelectable
fn clone(&self) -> StyleSelectable
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 StyleSelectable
impl RefUnwindSafe for StyleSelectable
impl !Send for StyleSelectable
impl !Sync for StyleSelectable
impl Unpin for StyleSelectable
impl UnwindSafe for StyleSelectable
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