Skip to main content

tm_ui_input_state_t

Struct tm_ui_input_state_t 

Source
#[repr(C)]
pub struct tm_ui_input_state_t {
Show 41 fields pub time: f64, pub scale: tm_vec2_t, pub offset: tm_vec2_t, pub mouse_pos: tm_vec2_t, pub mouse_move: tm_vec2_t, pub mouse_wheel: f32, pub left_mouse_pressed: bool, pub left_mouse_released: bool, pub left_mouse_is_down: bool, pub right_mouse_pressed: bool, pub right_mouse_released: bool, pub right_mouse_is_down: bool, pub middle_mouse_pressed: bool, pub middle_mouse_released: bool, pub middle_mouse_is_down: bool, pub back_mouse_pressed: bool, pub back_mouse_released: bool, pub back_mouse_is_down: bool, pub left_mouse_pressed_at_time: f64, pub mouse_move_at_time: f64, pub double_click: bool, pub triple_click: bool, pub pen_pressed: bool, pub pen_released: bool, pub pen_is_down: bool, pub touch_pressed: bool, pub touch_released: bool, pub touch_is_down: bool, pub pressure: f32, pub pen_erase: bool, pub _padding_191: [c_char; 3], pub key_is_down: *mut bool, pub key_pressed: *mut bool, pub key_released: *mut bool, pub key_repeated: *mut bool, pub modifiers: u32, pub edit_key_pressed: [bool; 19], pub _padding_207: [c_char; 1], pub num_text_input: u32, pub text_input: [u32; 32], pub _padding_212: [c_char; 4],
}

Fields§

§time: f64§scale: tm_vec2_t§offset: tm_vec2_t§mouse_pos: tm_vec2_t§mouse_move: tm_vec2_t§mouse_wheel: f32§left_mouse_pressed: bool§left_mouse_released: bool§left_mouse_is_down: bool§right_mouse_pressed: bool§right_mouse_released: bool§right_mouse_is_down: bool§middle_mouse_pressed: bool§middle_mouse_released: bool§middle_mouse_is_down: bool§back_mouse_pressed: bool§back_mouse_released: bool§back_mouse_is_down: bool§left_mouse_pressed_at_time: f64§mouse_move_at_time: f64§double_click: bool§triple_click: bool§pen_pressed: bool§pen_released: bool§pen_is_down: bool§touch_pressed: bool§touch_released: bool§touch_is_down: bool§pressure: f32§pen_erase: bool§_padding_191: [c_char; 3]§key_is_down: *mut bool§key_pressed: *mut bool§key_released: *mut bool§key_repeated: *mut bool§modifiers: u32§edit_key_pressed: [bool; 19]§_padding_207: [c_char; 1]§num_text_input: u32§text_input: [u32; 32]§_padding_212: [c_char; 4]

Trait Implementations§

Source§

impl Clone for tm_ui_input_state_t

Source§

fn clone(&self) -> tm_ui_input_state_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 Copy for tm_ui_input_state_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.