mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-18 00:41:26 -07:00
37 lines
955 B
Odin
37 lines
955 B
Odin
//+build !js
|
|
package wasm_js_interface
|
|
|
|
import "core:runtime"
|
|
|
|
|
|
get_element_value_string :: proc "contextless" (id: string, buf: []byte) -> string {
|
|
context = runtime.default_context()
|
|
panic("vendor:wasm/js not supported on non JS targets")
|
|
}
|
|
|
|
|
|
get_element_min_max :: proc "contextless" (id: string) -> (min, max: f64) {
|
|
context = runtime.default_context()
|
|
panic("vendor:wasm/js not supported on non JS targets")
|
|
}
|
|
|
|
|
|
Rect :: struct {
|
|
x, y, width, height: f64,
|
|
}
|
|
|
|
get_bounding_client_rect :: proc "contextless" (id: string) -> (rect: Rect) {
|
|
context = runtime.default_context()
|
|
panic("vendor:wasm/js not supported on non JS targets")
|
|
}
|
|
|
|
window_get_rect :: proc "contextless" () -> (rect: Rect) {
|
|
context = runtime.default_context()
|
|
panic("vendor:wasm/js not supported on non JS targets")
|
|
}
|
|
|
|
window_get_scroll :: proc "contextless" () -> (x, y: f64) {
|
|
context = runtime.default_context()
|
|
panic("vendor:wasm/js not supported on non JS targets")
|
|
}
|