-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull web demos and C++/Rust reference docs from commit 98fde8c5433b20b6366fc25c83ad5e60795a6a3e (refs/heads/master)
- Loading branch information
1 parent
cf7b30d
commit 2fa93ed
Showing
1,237 changed files
with
386,276 additions
and
234 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!DOCTYPE html> | ||
|
||
<!-- Copyright © SixtyFPS GmbH <[email protected]> --> | ||
<!-- SPDX-License-Identifier: MIT --> | ||
|
||
<html> | ||
<!-- | ||
This is a static html file used to display the wasm build. | ||
In order to generate the build | ||
- uncomment the #wasm# lines in Cargo.toml | ||
- Run `wasm-pack build --release --target web` in this directory. | ||
--> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Slint Carousel example (Web Assembly version)</title> | ||
<link rel="stylesheet" href="https://slint.dev/css/demos-v1.css"> | ||
<style> | ||
@media screen and (max-width: 992px) and (orientation: landscape) { | ||
.hide-in-mobile-landscape { | ||
display: none; | ||
} | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
overflow: hidden; | ||
} | ||
|
||
canvas { | ||
width: 100vw !important; | ||
height: 100vh !important; | ||
} | ||
} | ||
|
||
</style> | ||
</head> | ||
|
||
<body> | ||
<h1 class="hide-in-mobile-landscape">Carousel example</h1> | ||
<p class="hide-in-mobile-landscape">This is the <a href="https://slint.dev">Slint</a> Carousel example compiled to | ||
WebAssembly.</p> | ||
<div id="spinner" style="position: relative;"> | ||
<div class="spinner">Loading...</div> | ||
</div> | ||
<canvas id="canvas" width="640" height="480" unselectable="on"></canvas> | ||
<p class="hide-in-mobile-landscape links"> | ||
<a href="https://github.com/slint-ui/slint/blob/master/examples/carousel/ui/carousel_demo.slint"> | ||
View Source Code on GitHub</a> - | ||
<a href="https://slint.dev/editor?load_demo=examples/carousel/ui/carousel_demo.slint"> | ||
Open in SlintPad | ||
</a> | ||
</p> | ||
<script type="module"> | ||
import init from './pkg/carousel.js'; | ||
init().finally(() => { | ||
document.getElementById("spinner").remove(); | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
*/ | ||
export function main(): void; | ||
|
||
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; | ||
|
||
export interface InitOutput { | ||
readonly memory: WebAssembly.Memory; | ||
readonly main: () => void; | ||
readonly slint_mock_elapsed_time: (a: number) => void; | ||
readonly slint_get_mocked_time: () => number; | ||
readonly slint_send_mouse_click: (a: number, b: number, c: number) => void; | ||
readonly slint_send_keyboard_char: (a: number, b: number, c: number) => void; | ||
readonly send_keyboard_string_sequence: (a: number, b: number) => void; | ||
readonly __wbindgen_malloc: (a: number, b: number) => number; | ||
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; | ||
readonly __wbindgen_export_2: WebAssembly.Table; | ||
readonly _dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b28f5b5100880f5: (a: number, b: number, c: number) => void; | ||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1962a275ae97145c: (a: number, b: number, c: number) => void; | ||
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h12c1ebc45e36ecbe: (a: number, b: number) => void; | ||
readonly _dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h028b050b60049bd3: (a: number, b: number, c: number, d: number) => void; | ||
readonly __wbindgen_exn_store: (a: number) => void; | ||
readonly __wbindgen_start: () => void; | ||
} | ||
|
||
export type SyncInitInput = BufferSource | WebAssembly.Module; | ||
/** | ||
* Instantiates the given `module`, which can either be bytes or | ||
* a precompiled `WebAssembly.Module`. | ||
* | ||
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated. | ||
* | ||
* @returns {InitOutput} | ||
*/ | ||
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput; | ||
|
||
/** | ||
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and | ||
* for everything else, calls `WebAssembly.instantiate` directly. | ||
* | ||
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated. | ||
* | ||
* @returns {Promise<InitOutput>} | ||
*/ | ||
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>; |
Oops, something went wrong.