core/sys/wasm/js

wasm_js_interface

Types

9

Event

Event :: struct { kind: Event_Kind, target_kind: Event_Target_Kind, current_target_kind: Event_Target_Kind, id: string, timestamp: f64, phase: Event_Phase, options: Event_Options, is_composing: bool, is_trusted: bool, data: struct #raw_union { scroll: struct { delta: [2]f64, }, visibility_change: struct { is_visible: bool, }, wheel: struct { delta: [3]f64, delta_mode: Delta_Mode, }, key: struct { key: string, code: string, location: Key_Location, ctrl: bool, shift: bool, alt: bool, meta: bool, repeat: bool, _key_buf: [16]u8, _code_buf: [16]u8, }, mouse: struct { screen: [2]i64, client: [2]i64, offset: [2]i64, page: [2]i64, movement: [2]i64, ctrl: bool, shift: bool, alt: bool, meta: bool, button: i16, buttons: _, }, }, }Source

Event_Kind

Event_Kind :: enum u32 { Invalid = 0, Load = 1, Unload = 2, Error = 3, Resize = 4, Visibility_Change = 5, Fullscreen_Change = 6, Fullscreen_Error = 7, Click = 8, Double_Click = 9, Mouse_Move = 10, Mouse_Over = 11, Mouse_Out = 12, Mouse_Up = 13, Mouse_Down = 14, Key_Up = 15, Key_Down = 16, Key_Press = 17, Scroll = 18, Wheel = 19, Focus = 20, Submit = 21, Blur = 22, Change = 23, Select = 24, Animation_Start = 25, Animation_End = 26, Animation_Iteration = 27, Animation_Cancel = 28, Copy = 29, Cut = 30, Paste = 31, // Drag, // Drag_Start, // Drag_End, // Drag_Enter, // Drag_Leave, // Drag_Over, // Drop, Pointer_Cancel = 32, Pointer_Down = 33, Pointer_Enter = 34, Pointer_Leave = 35, Pointer_Move = 36, Pointer_Over = 37, Pointer_Up = 38, Got_Pointer_Capture = 39, Lost_Pointer_Capture = 40, Pointer_Lock_Change = 41, Pointer_Lock_Error = 42, Selection_Change = 43, Selection_Start = 44, Touch_Cancel = 45, Touch_End = 46, Touch_Move = 47, Touch_Start = 48, Transition_Start = 49, Transition_End = 50, Transition_Run = 51, Transition_Cancel = 52, Context_Menu = 53, Custom = 54, }Source

Constants

3

Variables

1

Procedures

16

Reference search

Find anything

Documentation preferences

Settings

System theme variants

Used only while Theme is set to System.