#[repr(C)]pub struct StyleButton { /* private fields */ }
Implementations§
Source§impl StyleButton
impl StyleButton
pub fn normal(&self) -> &StyleItem
pub fn hover(&self) -> &StyleItem
pub fn active(&self) -> &StyleItem
pub fn border_color(&self) -> &Color
pub fn text_background(&self) -> &Color
pub fn text_normal(&self) -> &Color
pub fn text_hover(&self) -> &Color
pub fn text_active(&self) -> &Color
pub fn text_alignment(&self) -> u32
pub fn border(&self) -> f32
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_active(&mut self, i: StyleItem)
pub fn set_border_color(&mut self, c: Color)
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_border(&mut self, c: f32)
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§fn as_mut(&mut self) -> &mut StyleButton
fn as_mut(&mut self) -> &mut StyleButton
Converts this type into a mutable reference of the (usually inferred) input type.
Source§fn as_mut(&mut self) -> &mut nk_style_button
fn as_mut(&mut self) -> &mut nk_style_button
Converts this type into a mutable reference of the (usually inferred) input type.
Source§fn as_ref(&self) -> &StyleButton
fn as_ref(&self) -> &StyleButton
Converts this type into a shared reference of the (usually inferred) input type.
Source§fn as_ref(&self) -> &nk_style_button
fn as_ref(&self) -> &nk_style_button
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for StyleButton
impl Clone for StyleButton
Source§fn clone(&self) -> StyleButton
fn clone(&self) -> StyleButton
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 StyleButton
impl RefUnwindSafe for StyleButton
impl !Send for StyleButton
impl !Sync for StyleButton
impl Unpin for StyleButton
impl UnwindSafe for StyleButton
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