lv_scale_t

Struct lv_scale_t 

Source
#[repr(C)]
pub struct lv_scale_t {
Show 13 fields pub obj: lv_obj_t, pub section_ll: lv_ll_t, pub txt_src: *mut *const c_char, pub mode: lv_scale_mode_t, pub range_min: i32, pub range_max: i32, pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 5]>, pub angle_range: u32, pub rotation: i32, pub custom_label_cnt: i32, pub last_tick_width: i32, pub first_tick_width: i32,
}

Fields§

§obj: lv_obj_t§section_ll: lv_ll_t

< Linked list for the sections (stores lv_scale_section_t)

§txt_src: *mut *const c_char§mode: lv_scale_mode_t§range_min: i32§range_max: i32§_bitfield_align_1: [u16; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 5]>§angle_range: u32§rotation: i32§custom_label_cnt: i32§last_tick_width: i32§first_tick_width: i32

Implementations§

Source§

impl lv_scale_t

Source

pub fn total_tick_count(&self) -> u32

Source

pub fn set_total_tick_count(&mut self, val: u32)

Source

pub unsafe fn total_tick_count_raw(this: *const Self) -> u32

Source

pub unsafe fn set_total_tick_count_raw(this: *mut Self, val: u32)

Source

pub fn major_tick_every(&self) -> u32

Source

pub fn set_major_tick_every(&mut self, val: u32)

Source

pub unsafe fn major_tick_every_raw(this: *const Self) -> u32

Source

pub unsafe fn set_major_tick_every_raw(this: *mut Self, val: u32)

Source

pub fn label_enabled(&self) -> u32

Source

pub fn set_label_enabled(&mut self, val: u32)

Source

pub unsafe fn label_enabled_raw(this: *const Self) -> u32

Source

pub unsafe fn set_label_enabled_raw(this: *mut Self, val: u32)

Source

pub fn post_draw(&self) -> u32

Source

pub fn set_post_draw(&mut self, val: u32)

Source

pub unsafe fn post_draw_raw(this: *const Self) -> u32

Source

pub unsafe fn set_post_draw_raw(this: *mut Self, val: u32)

Source

pub fn draw_ticks_on_top(&self) -> u32

Source

pub fn set_draw_ticks_on_top(&mut self, val: u32)

Source

pub unsafe fn draw_ticks_on_top_raw(this: *const Self) -> u32

Source

pub unsafe fn set_draw_ticks_on_top_raw(this: *mut Self, val: u32)

Source

pub fn new_bitfield_1( total_tick_count: u32, major_tick_every: u32, label_enabled: u32, post_draw: u32, draw_ticks_on_top: u32, ) -> __BindgenBitfieldUnit<[u8; 5]>

Trait Implementations§

Source§

impl Clone for lv_scale_t

Source§

fn clone(&self) -> lv_scale_t

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 Debug for lv_scale_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for lv_scale_t

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, 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.