lv_indev_t

Struct lv_indev_t 

Source
#[repr(C)]
pub struct lv_indev_t {
Show 26 fields pub type_: lv_indev_type_t, pub read_cb: lv_indev_read_cb_t, pub state: lv_indev_state_t, pub mode: lv_indev_mode_t, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub pr_timestamp: u32, pub longpr_rep_timestamp: u32, pub driver_data: *mut c_void, pub user_data: *mut c_void, pub disp: *mut lv_display_t, pub read_timer: *mut lv_timer_t, pub scroll_limit: u8, pub scroll_throw: u8, pub gesture_min_velocity: u8, pub gesture_limit: u8, pub long_press_time: u16, pub long_press_repeat_time: u16, pub rotary_sensitivity: i32, pub pointer: lv_indev_t__bindgen_ty_1, pub keypad: lv_indev_t__bindgen_ty_2, pub cursor: *mut lv_obj_t, pub group: *mut lv_group_t, pub btn_points: *const lv_point_t, pub event_list: lv_event_list_t, pub scroll_throw_anim: *mut lv_anim_t,
}
Expand description

TYPEDEFS

Fields§

§type_: lv_indev_type_t

Input device type

§read_cb: lv_indev_read_cb_t

Function pointer to read input device data.

§state: lv_indev_state_t

< Current state of the input device.

§mode: lv_indev_mode_t§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§pr_timestamp: u32

< Pressed time stamp

§longpr_rep_timestamp: u32

< Long press repeat time stamp

§driver_data: *mut c_void§user_data: *mut c_void§disp: *mut lv_display_t§read_timer: *mut lv_timer_t§scroll_limit: u8§scroll_throw: u8§gesture_min_velocity: u8§gesture_limit: u8§long_press_time: u16§long_press_repeat_time: u16§rotary_sensitivity: i32§pointer: lv_indev_t__bindgen_ty_1§keypad: lv_indev_t__bindgen_ty_2§cursor: *mut lv_obj_t

< Cursor for LV_INPUT_TYPE_POINTER

§group: *mut lv_group_t

< Keypad destination group

§btn_points: *const lv_point_t

< Array points assigned to the button ()screen will be pressed here by the buttons

§event_list: lv_event_list_t§scroll_throw_anim: *mut lv_anim_t

Implementations§

Source§

impl lv_indev_t

Source

pub fn long_pr_sent(&self) -> u8

Source

pub fn set_long_pr_sent(&mut self, val: u8)

Source

pub unsafe fn long_pr_sent_raw(this: *const Self) -> u8

Source

pub unsafe fn set_long_pr_sent_raw(this: *mut Self, val: u8)

Source

pub fn reset_query(&self) -> u8

Source

pub fn set_reset_query(&mut self, val: u8)

Source

pub unsafe fn reset_query_raw(this: *const Self) -> u8

Source

pub unsafe fn set_reset_query_raw(this: *mut Self, val: u8)

Source

pub fn enabled(&self) -> u8

Source

pub fn set_enabled(&mut self, val: u8)

Source

pub unsafe fn enabled_raw(this: *const Self) -> u8

Source

pub unsafe fn set_enabled_raw(this: *mut Self, val: u8)

Source

pub fn wait_until_release(&self) -> u8

Source

pub fn set_wait_until_release(&mut self, val: u8)

Source

pub unsafe fn wait_until_release_raw(this: *const Self) -> u8

Source

pub unsafe fn set_wait_until_release_raw(this: *mut Self, val: u8)

Source

pub fn stop_processing_query(&self) -> u8

Source

pub fn set_stop_processing_query(&mut self, val: u8)

Source

pub unsafe fn stop_processing_query_raw(this: *const Self) -> u8

Source

pub unsafe fn set_stop_processing_query_raw(this: *mut Self, val: u8)

Source

pub fn new_bitfield_1( long_pr_sent: u8, reset_query: u8, enabled: u8, wait_until_release: u8, stop_processing_query: u8, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

Source§

impl Clone for lv_indev_t

Source§

fn clone(&self) -> lv_indev_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_indev_t

Source§

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

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

impl Copy for lv_indev_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.