[][src]Struct lvgl::hal::indev::lv_indev_data_t

#[repr(C)]pub struct lv_indev_data_t {
    pub point: lv_point_t,
    pub key: u32,
    pub btn_id: u32,
    pub enc_diff: i16,
    pub state: lv_indev_state_t,
}

Data structure passed to an input driver to fill

Fields

point: lv_point_t

< For LV_INDEV_TYPE_POINTER the currently pressed point

key: u32

< For LV_INDEV_TYPE_KEYPAD the currently pressed key

btn_id: u32

< For LV_INDEV_TYPE_BUTTON the currently pressed button

enc_diff: i16

< For LV_INDEV_TYPE_ENCODER number of steps since the previous read

state: lv_indev_state_t

< LV_INDEV_STATE_REL or LV_INDEV_STATE_PR

Trait Implementations

impl Clone for lv_indev_data_t[src]

impl Copy for lv_indev_data_t[src]

impl Default for lv_indev_data_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.