Skip to main content

_lv_indev_t

Struct _lv_indev_t 

Source
#[repr(C)]
pub struct _lv_indev_t {
Show 27 fields pub type_: u32, pub read_cb: Option<unsafe extern "C" fn(*mut _lv_indev_t, *mut lv_indev_data_t)>, pub state: u32, pub prev_state: u32, pub mode: u32, 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,
}

Fields§

§type_: u32§read_cb: Option<unsafe extern "C" fn(*mut _lv_indev_t, *mut lv_indev_data_t)>§state: u32§prev_state: u32§mode: u32§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§pr_timestamp: u32§longpr_rep_timestamp: u32§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§group: *mut _lv_group_t§btn_points: *const lv_point_t§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 fn reset_query(&self) -> u8

Source

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

Source

pub fn enabled(&self) -> u8

Source

pub fn set_enabled(&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 fn stop_processing_query(&self) -> u8

Source

pub fn set_stop_processing_query(&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<(), Error>

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

impl Default for _lv_indev_t

Source§

fn default() -> _lv_indev_t

Returns the “default value” for a type. 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> 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.