Struct nk_style

Source
#[repr(C)]
pub struct nk_style {
Show 22 fields pub font: *const nk_user_font, pub cursors: [*const nk_cursor; 7], pub cursor_active: *const nk_cursor, pub cursor_last: *mut nk_cursor, pub cursor_visible: c_int, pub text: nk_style_text, pub button: nk_style_button, pub contextual_button: nk_style_button, pub menu_button: nk_style_button, pub option: nk_style_toggle, pub checkbox: nk_style_toggle, pub selectable: nk_style_selectable, pub slider: nk_style_slider, pub progress: nk_style_progress, pub property: nk_style_property, pub edit: nk_style_edit, pub chart: nk_style_chart, pub scrollh: nk_style_scrollbar, pub scrollv: nk_style_scrollbar, pub tab: nk_style_tab, pub combo: nk_style_combo, pub window: nk_style_window,
}

Fields§

§font: *const nk_user_font§cursors: [*const nk_cursor; 7]§cursor_active: *const nk_cursor§cursor_last: *mut nk_cursor§cursor_visible: c_int§text: nk_style_text§button: nk_style_button§contextual_button: nk_style_button§menu_button: nk_style_button§option: nk_style_toggle§checkbox: nk_style_toggle§selectable: nk_style_selectable§slider: nk_style_slider§progress: nk_style_progress§property: nk_style_property§edit: nk_style_edit§chart: nk_style_chart§scrollh: nk_style_scrollbar§scrollv: nk_style_scrollbar§tab: nk_style_tab§combo: nk_style_combo§window: nk_style_window

Trait Implementations§

Source§

impl Clone for nk_style

Source§

fn clone(&self) -> nk_style

Returns a duplicate 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 nk_style

Source§

fn default() -> Self

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

impl Copy for nk_style

Auto Trait Implementations§

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.