Struct Style

Source
#[repr(C)]
pub struct Style { /* private fields */ }

Implementations§

Source§

impl Style

Source

pub fn window_mut(&mut self) -> &mut StyleWindow

Source

pub fn font_mut(&mut self) -> &mut UserFont

Source

pub fn cursors_mut(&mut self) -> &mut CursorMap<'_>

Source

pub fn cursor_active_mut(&mut self) -> &mut Cursor

Source

pub fn set_cursor_visible(&mut self, value: bool)

Source

pub fn text_mut(&mut self) -> &mut StyleText

Source

pub fn button_mut(&mut self) -> &mut StyleButton

Source

pub fn contextual_button_mut(&mut self) -> &mut StyleButton

Source

pub fn menu_button_mut(&mut self) -> &mut StyleButton

Source

pub fn option_mut(&mut self) -> &mut StyleToggle

Source

pub fn checkbox_mut(&mut self) -> &mut StyleToggle

Source

pub fn selectable_mut(&mut self) -> &mut StyleSelectable

Source

pub fn slider_mut(&mut self) -> &mut StyleSlider

Source

pub fn progress_mut(&mut self) -> &mut StyleProgress

Source

pub fn property_mut(&mut self) -> &mut StyleProperty

Source

pub fn edit_mut(&mut self) -> &mut StyleEdit

Source

pub fn chart_mut(&mut self) -> &mut StyleChart

Source

pub fn scroll_h_mut(&mut self) -> &mut StyleScrollbar

Source

pub fn scroll_v_mut(&mut self) -> &mut StyleScrollbar

Source

pub fn tab_mut(&mut self) -> &mut StyleTab

Source

pub fn combo_mut(&mut self) -> &mut StyleCombo

Source

pub fn window(&self) -> &StyleWindow

Source

pub fn font(&self) -> &UserFont

Source

pub fn cursors(&self) -> &CursorMap<'_>

Source

pub fn cursor_active(&self) -> &Cursor

Source

pub fn cursor_visible(&self) -> bool

Source

pub fn text(&self) -> &StyleText

Source

pub fn button(&self) -> &StyleButton

Source

pub fn contextual_button(&self) -> &StyleButton

Source

pub fn menu_button(&self) -> &StyleButton

Source

pub fn option(&self) -> &StyleToggle

Source

pub fn checkbox(&self) -> &StyleToggle

Source

pub fn selectable(&self) -> &StyleSelectable

Source

pub fn slider(&self) -> &StyleSlider

Source

pub fn progress(&self) -> &StyleProgress

Source

pub fn property(&self) -> &StyleProperty

Source

pub fn edit(&self) -> &StyleEdit

Source

pub fn chart(&self) -> &StyleChart

Source

pub fn scroll_h(&self) -> &StyleScrollbar

Source

pub fn scroll_v(&self) -> &StyleScrollbar

Source

pub fn tab(&self) -> &StyleTab

Source

pub fn combo(&self) -> &StyleCombo

Trait Implementations§

Source§

impl AsMut<Style> for nk_style

Source§

fn as_mut(&mut self) -> &mut Style

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<nk_style> for Style

Source§

fn as_mut(&mut self) -> &mut nk_style

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<Style> for nk_style

Source§

fn as_ref(&self) -> &Style

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<nk_style> for Style

Source§

fn as_ref(&self) -> &nk_style

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for Style

Source§

fn clone(&self) -> Style

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Style

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Style

§

impl RefUnwindSafe for Style

§

impl !Send for Style

§

impl !Sync for Style

§

impl Unpin for Style

§

impl UnwindSafe for Style

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.