Platform-specific package target: js_wasm32

Collection Info

View Source
Collection
core
Path
sys/wasm/js
Entries
60

Source Files

(hidden platform specific files)

Constants

7

Types

12

Procedures

40

do_event_callback #

Source
@(export)
@(link_name="odin_dom_do_event_callback")
do_event_callback :: proc(user_data: rawptr, callback: proc(e: Event)) {…}

event_prevent_default #

Source
event_prevent_default :: proc "contextless" () ---

event_stop_immediate_propagation #

Source
event_stop_immediate_propagation :: proc "contextless" () ---

event_stop_propagation #

Source
event_stop_propagation :: proc "contextless" () ---

get_element_value_string_length #

Source
get_element_value_string_length :: proc "contextless" (id: string) -> int ---

window_get_scroll #

Source
window_get_scroll :: proc "contextless" () -> (x, y: f64) {…}

Variables

1

event_kind_string #

Source
event_kind_string: [Event_Kind]string = [Event_Kind]string{.Invalid = "", .Load = "load", .Unload = "unload", .Error = "error", .Resize = "resize", .Visibility_Change = "visibilitychange", .Fullscreen_Change = "fullscreenchange", .Fullscreen_Error = "fullscreenerror", .Click = "click", .Double_Click = "dblclick", .Mouse_Move = "mousemove", .Mouse_Over = "mouseover", .Mouse_Out = "mouseout", .Mouse_Up = "mouseup", .Mouse_Down = "mousedown", .Key_Up = "keyup", .Key_Down = "keydown", .Key_Press = "keypress", .Scroll = "scroll", .Wheel = "wheel", .Focus = "focus", .Focus_In = "focusin", .Focus_Out = "focusout", .Submit = "submit", .Blur = "blur", .Change = "change", .Hash_Change = "hashchange", .Select = "select", .Animation_Start = "animationstart", .Animation_End = "animationend", .Animation_Iteration = "animationiteration", .Animation_Cancel = "animationcancel", .Copy = "copy", .Cut = "cut", .Paste = "paste", .Pointer_Cancel = "pointercancel", .Pointer_Down = "pointerdown", .Pointer_Enter = "pointerenter", .Pointer_Leave = "pointerleave", .Pointer_Move = "pointermove", .Pointer_Over = "pointerover", .Pointer_Up = "pointerup", .Got_Pointer_Capture = "gotpointercapture", .Lost_Pointer_Capture = "lostpointercapture", .Pointer_Lock_Change = "pointerlockchange", .Pointer_Lock_Error = "pointerlockerror", .Selection_Change = "selectionchange", .Selection_Start = "selectionstart", .Transition_Start = "transitionstart", .Transition_End = "transitionend", .Transition_Run = "transitionrun", .Transition_Cancel = "transitioncancel", .Touch_Cancel = "touchcancel", .Touch_End = "touchend", .Touch_Move = "touchmove", .Touch_Start = "touchstart", .Context_Menu = "contextmenu", .Gamepad_Connected = "gamepadconnected", .Gamepad_Disconnected = "gamepaddisconnected", .Custom = "?custom?"}