package core:sys/wasm/js

Warning: This was generated for -target:windows_amd64 and might not represent every target this package supports.

⌘K
Ctrl+K
or
/

    Types

    Delta_Mode ¶

    Delta_Mode :: enum u32 {
    	Pixel = 0, 
    	Line  = 1, 
    	Page  = 2, 
    }

    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,
    	using data:          struct #raw_union #align (8) {
    		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:  bit_set[int; u16],
    		},
    	},
    	user_data:           rawptr,
    	callback:            proc(e: Event),
    }
    Related Procedures With Parameters

    Event_Kind ¶

    Event_Kind :: enum u32 {
    	Invalid, 
    	Load, 
    	Unload, 
    	Error, 
    	Resize, 
    	Visibility_Change, 
    	Fullscreen_Change, 
    	Fullscreen_Error, 
    	Click, 
    	Double_Click, 
    	Mouse_Move, 
    	Mouse_Over, 
    	Mouse_Out, 
    	Mouse_Up, 
    	Mouse_Down, 
    	Key_Up, 
    	Key_Down, 
    	Key_Press, 
    	Scroll, 
    	Wheel, 
    	Focus, 
    	Submit, 
    	Blur, 
    	Change, 
    	Select, 
    	Animation_Start, 
    	Animation_End, 
    	Animation_Iteration, 
    	Animation_Cancel, 
    	Copy, 
    	Cut, 
    	Paste, 
    	Pointer_Cancel, 
    	Pointer_Down, 
    	Pointer_Enter, 
    	Pointer_Leave, 
    	Pointer_Move, 
    	Pointer_Over, 
    	Pointer_Up, 
    	Got_Pointer_Capture, 
    	Lost_Pointer_Capture, 
    	Pointer_Lock_Change, 
    	Pointer_Lock_Error, 
    	Selection_Change, 
    	Selection_Start, 
    	Touch_Cancel, 
    	Touch_End, 
    	Touch_Move, 
    	Touch_Start, 
    	Transition_Start, 
    	Transition_End, 
    	Transition_Run, 
    	Transition_Cancel, 
    	Context_Menu, 
    	Custom, 
    }
    Related Procedures With Parameters

    Event_Option ¶

    Event_Option :: enum u8 {
    	Bubbles    = 0, 
    	Cancelable = 1, 
    	Composed   = 2, 
    }

    Event_Options ¶

    Event_Options :: distinct bit_set[Event_Option; u8]

    Event_Phase ¶

    Event_Phase :: enum u8 {
    	None            = 0, 
    	Capturing_Phase = 1, 
    	At_Target       = 2, 
    	Bubbling_Phase  = 3, 
    }

    Event_Target_Kind ¶

    Event_Target_Kind :: enum u32 {
    	Element  = 0, 
    	Document = 1, 
    	Window   = 2, 
    }

    Key_Location ¶

    Key_Location :: enum u8 {
    	Standard = 0, 
    	Left     = 1, 
    	Right    = 2, 
    	Numpad   = 3, 
    }

    Rect ¶

    Rect :: struct {
    	x:      f64,
    	y:      f64,
    	width:  f64,
    	height: f64,
    }
    Related Procedures With Returns

    Constants

    KEYBOARD_MAX_CODE_SIZE ¶

    KEYBOARD_MAX_CODE_SIZE: int : 16

    KEYBOARD_MAX_KEY_SIZE ¶

    KEYBOARD_MAX_KEY_SIZE: int : 16

    PAGE_SIZE ¶

    PAGE_SIZE: int : 64 * 1024

    Variables

    event_kind_string ¶

    event_kind_string: [Event_Kind]string = …

    Procedures

    add_custom_event_listener ¶

    add_custom_event_listener :: proc(id: string, name: string, user_data: rawptr, callback: proc(e: Event), use_capture: bool = false) -> bool {…}

    add_document_event_listener ¶

    add_document_event_listener :: proc(kind: Event_Kind, user_data: rawptr, callback: proc(e: Event), use_capture: bool = false) -> bool {…}

    add_event_listener ¶

    add_event_listener :: proc(id: string, kind: Event_Kind, user_data: rawptr, callback: proc(e: Event), use_capture: bool = false) -> bool {…}

    add_window_event_listener ¶

    add_window_event_listener :: proc(kind: Event_Kind, user_data: rawptr, callback: proc(e: Event), use_capture: bool = false) -> bool {…}

    get_bounding_client_rect ¶

    get_bounding_client_rect :: proc "contextless" (id: string) -> (rect: Rect) {…}

    get_element_min_max ¶

    get_element_min_max :: proc "contextless" (id: string) -> (min, max: f64) {…}

    get_element_value_string ¶

    get_element_value_string :: proc "contextless" (id: string, buf: []u8) -> string {…}

    page_alloc ¶

    page_alloc :: proc(page_count: int) -> (data: []u8, err: runtime.Allocator_Error) {…}

    page_allocator ¶

    page_allocator :: proc() -> runtime.Allocator {…}

    remove_custom_event_listener ¶

    remove_custom_event_listener :: proc(id: string, name: string, user_data: rawptr, callback: proc(e: Event), use_capture: bool = false) -> bool {…}

    remove_document_event_listener ¶

    remove_document_event_listener :: proc(kind: Event_Kind, user_data: rawptr, callback: proc(e: Event), use_capture: bool = false) -> bool {…}

    remove_event_listener ¶

    remove_event_listener :: proc(id: string, kind: Event_Kind, user_data: rawptr, callback: proc(e: Event), use_capture: bool = false) -> bool {…}

    remove_event_listener_from_event ¶

    remove_event_listener_from_event :: proc(e: Event) -> bool {…}

    remove_window_event_listener ¶

    remove_window_event_listener :: proc(kind: Event_Kind, user_data: rawptr, callback: proc(e: Event), use_capture: bool = false) -> bool {…}

    window_get_rect ¶

    window_get_rect :: proc "contextless" () -> (rect: Rect) {…}

    window_get_scroll ¶

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

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-v0.0.1 (vendor "odin") Linux_amd64 @ 2026-01-30 10:23:17.108633904 +0000 UTC