#[repr(C)]pub struct InputData {
pub continue: bool,
pub point: Point,
pub state: State,
pub key: Key,
}
Fields§
§continue: bool
§point: Point
§state: State
§key: Key
Implementations§
Source§impl InputData
impl InputData
pub const fn new(point: Point, state: State, key: Key, continue: bool) -> Self
pub const fn get_continue(&self) -> bool
pub const fn get_point(&self) -> &Point
pub const fn get_touch(&self) -> &State
pub const fn get_key(&self) -> Key
pub const fn set_continue(&mut self, continue: bool)
pub fn set_point(&mut self, point: Point)
pub fn set_state(&mut self, touch: State)
pub fn set_key(&mut self, key: Key)
pub fn set(&mut self, point: Point, touch: State)
Trait Implementations§
Source§impl From<InputData> for lv_indev_data_t
impl From<InputData> for lv_indev_data_t
Source§fn from(value: InputData) -> lv_indev_data_t
fn from(value: InputData) -> lv_indev_data_t
Converts to this type from the input type.
impl Copy for InputData
impl Eq for InputData
impl StructuralPartialEq for InputData
Auto Trait Implementations§
impl Freeze for InputData
impl RefUnwindSafe for InputData
impl Send for InputData
impl Sync for InputData
impl Unpin for InputData
impl UnwindSafe for InputData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more