oa::ui::types::UiInputState

Stable per-frame pointer and modifier snapshot. Donor: oa/ui/event.h.

StRust public API

Declaration

pub struct UiInputState {Show 18 fields pub mouse_x: f32, pub mouse_y: f32, pub mouse_dx: f32, pub mouse_dy: f32, pub l_button: bool, pub m_button: bool, pub r_button: bool, pub l_pressed: bool, pub l_released: bool, pub l_click_count: i32, pub scroll_x: f32, pub scroll_y: f32, pub modifiers: UiModifiers, pub pointer_down: bool, pub pointer_x: f32, pub pointer_y: f32, pub shift: bool, pub ctrl: bool, }
Public Rust declaration.

Public Methods

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

Associated Functions

fn default() -> UiInputState

Public Data Members

mouse_xf32field
mouse_yf32field
mouse_dxf32field
mouse_dyf32field
l_buttonboolfield
m_buttonboolfield
r_buttonboolfield
l_pressedboolfield
l_releasedboolfield
l_click_counti32field
scroll_xf32field
scroll_yf32field
modifiersUiModifiersfield
pointer_downboolfield
pointer_xf32field
pointer_yf32field
shiftboolfield
ctrlboolfield

Public Method Documentation

fn clone( &self ) -> UiInputState
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn default() -> UiInputState
No public source comment is attached to this declaration.