#[repr(C)]pub struct StyleProperty { /* private fields */ }
Implementations§
Source§impl StyleProperty
impl StyleProperty
pub fn normal(&self) -> &StyleItem
pub fn hover(&self) -> &StyleItem
pub fn active(&self) -> &StyleItem
pub fn border_color(&self) -> &Color
pub fn label_normal(&self) -> &StyleItem
pub fn label_hover(&self) -> &StyleItem
pub fn label_active(&self) -> &StyleItem
pub fn sym_left(&self) -> &SymbolType
pub fn sym_right(&self) -> &SymbolType
pub fn border(&self) -> f32
pub fn rounding(&self) -> f32
pub fn padding(&self) -> &Vec2
pub fn edit(&self) -> &StyleEdit
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_label_normal(&mut self, c: Color)
pub fn set_label_hover(&mut self, c: Color)
pub fn set_label_active(&mut self, c: Color)
pub fn set_sym_left(&mut self, t: SymbolType)
pub fn set_sym_right(&mut self, t: SymbolType)
pub fn set_border(&mut self, v: f32)
pub fn set_rounding(&mut self, v: f32)
pub fn set_padding(&mut self, v: Vec2)
Trait Implementations§
Source§impl AsMut<StyleProperty> for nk_style_property
impl AsMut<StyleProperty> for nk_style_property
Source§fn as_mut(&mut self) -> &mut StyleProperty
fn as_mut(&mut self) -> &mut StyleProperty
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<nk_style_property> for StyleProperty
impl AsMut<nk_style_property> for StyleProperty
Source§fn as_mut(&mut self) -> &mut nk_style_property
fn as_mut(&mut self) -> &mut nk_style_property
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<StyleProperty> for nk_style_property
impl AsRef<StyleProperty> for nk_style_property
Source§fn as_ref(&self) -> &StyleProperty
fn as_ref(&self) -> &StyleProperty
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<nk_style_property> for StyleProperty
impl AsRef<nk_style_property> for StyleProperty
Source§fn as_ref(&self) -> &nk_style_property
fn as_ref(&self) -> &nk_style_property
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for StyleProperty
impl Clone for StyleProperty
Source§fn clone(&self) -> StyleProperty
fn clone(&self) -> StyleProperty
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 StyleProperty
impl RefUnwindSafe for StyleProperty
impl !Send for StyleProperty
impl !Sync for StyleProperty
impl Unpin for StyleProperty
impl UnwindSafe for StyleProperty
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