oa::ui::UiEvent
Platform-neutral UI event. Donor: oa/ui/event.h UiEvent.
Declaration
pub struct UiEvent {Show 23 fields pub kind: UiEventKind, pub mouse_x: f32, pub mouse_y: f32, pub mouse_dx: f32, pub mouse_dy: f32, pub button: i32, pub click_count: i32, pub scroll_x: f32, pub scroll_y: f32, pub integer_scroll_x: i32, pub integer_scroll_y: i32, pub timestamp_ns: u64, pub scroll_gesture: UiScrollGesture, pub gesture_scale: f32, pub pinch_phase: UiPinchPhase, pub key: UiKey, pub modifiers: UiModifiers, pub key_repeat: bool, pub text: String, pub text_selection_start: i32, pub text_selection_length: i32, pub window_w: i32, pub window_h: i32, }Public Rust declaration.
Public Methods
Associated Functions
Public Data Members
kindUiEventKindfieldmouse_xf32fieldmouse_yf32fieldmouse_dxf32fieldmouse_dyf32fieldclick_counti32fieldscroll_xf32fieldscroll_yf32fieldinteger_scroll_xi32fieldinteger_scroll_yi32fieldtimestamp_nsu64fieldscroll_gestureUiScrollGesturefieldgesture_scalef32fieldpinch_phaseUiPinchPhasefieldkeyUiKeyfieldmodifiersUiModifiersfieldkey_repeatboolfieldtextStringfieldtext_selection_starti32fieldtext_selection_lengthi32fieldwindow_wi32fieldwindow_hi32fieldPublic Method Documentation
Construct a pointer-move event.
Construct a pointer-move event.
Construct a pointer-move event.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.