diff --git a/snapshots/master/demos/android/energy-monitor.apk b/snapshots/master/demos/android/energy-monitor.apk index 656b21ec5..3fdec0d18 100644 Binary files a/snapshots/master/demos/android/energy-monitor.apk and b/snapshots/master/demos/android/energy-monitor.apk differ diff --git a/snapshots/master/demos/android/todo_lib.apk b/snapshots/master/demos/android/todo_lib.apk index bc7c19422..96587678c 100644 Binary files a/snapshots/master/demos/android/todo_lib.apk and b/snapshots/master/demos/android/todo_lib.apk differ diff --git a/snapshots/master/demos/carousel/pkg/carousel_bg.wasm b/snapshots/master/demos/carousel/pkg/carousel_bg.wasm index 57c3bb20f..007d71256 100644 Binary files a/snapshots/master/demos/carousel/pkg/carousel_bg.wasm and b/snapshots/master/demos/carousel/pkg/carousel_bg.wasm differ diff --git a/snapshots/master/demos/energy-monitor/pkg/energy_monitor.d.ts b/snapshots/master/demos/energy-monitor/pkg/energy_monitor.d.ts index d4a903a40..63aad4452 100644 --- a/snapshots/master/demos/energy-monitor/pkg/energy_monitor.d.ts +++ b/snapshots/master/demos/energy-monitor/pkg/energy_monitor.d.ts @@ -16,11 +16,11 @@ export interface InitOutput { readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_export_2: WebAssembly.Table; readonly __wbindgen_export_3: WebAssembly.Table; - readonly closure3467_externref_shim: (a: number, b: number, c: number) => void; - readonly closure4001_externref_shim: (a: number, b: number, c: number) => void; + readonly closure3468_externref_shim: (a: number, b: number, c: number) => void; + readonly closure4002_externref_shim: (a: number, b: number, c: number) => void; readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hac3fa95e7d2b078a: (a: number, b: number) => void; - readonly closure4002_externref_shim: (a: number, b: number, c: number, d: number) => void; - readonly closure4057_externref_shim: (a: number, b: number, c: number) => void; + readonly closure4003_externref_shim: (a: number, b: number, c: number, d: number) => void; + readonly closure4058_externref_shim: (a: number, b: number, c: number) => void; readonly __externref_table_alloc: () => number; readonly __wbindgen_exn_store: (a: number) => void; readonly __wbindgen_start: () => void; diff --git a/snapshots/master/demos/energy-monitor/pkg/energy_monitor.js b/snapshots/master/demos/energy-monitor/pkg/energy_monitor.js index c290b2da4..918a76fbe 100644 --- a/snapshots/master/demos/energy-monitor/pkg/energy_monitor.js +++ b/snapshots/master/demos/energy-monitor/pkg/energy_monitor.js @@ -180,7 +180,7 @@ function makeClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_28(arg0, arg1, arg2) { - wasm.closure3467_externref_shim(arg0, arg1, arg2); + wasm.closure3468_externref_shim(arg0, arg1, arg2); } function makeMutClosure(arg0, arg1, dtor, f) { @@ -208,7 +208,7 @@ function makeMutClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_39(arg0, arg1, arg2) { - wasm.closure4001_externref_shim(arg0, arg1, arg2); + wasm.closure4002_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_42(arg0, arg1) { @@ -216,11 +216,11 @@ function __wbg_adapter_42(arg0, arg1) { } function __wbg_adapter_55(arg0, arg1, arg2, arg3) { - wasm.closure4002_externref_shim(arg0, arg1, arg2, arg3); + wasm.closure4003_externref_shim(arg0, arg1, arg2, arg3); } function __wbg_adapter_60(arg0, arg1, arg2) { - wasm.closure4057_externref_shim(arg0, arg1, arg2); + wasm.closure4058_externref_shim(arg0, arg1, arg2); } export function main() { @@ -1655,64 +1655,64 @@ function __wbg_get_imports() { const ret = wasm.memory; return ret; }; - imports.wbg.__wbindgen_closure_wrapper7481 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 3468, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper7482 = function(arg0, arg1, arg2) { + const ret = makeClosure(arg0, arg1, 3469, __wbg_adapter_28); return ret; }; - imports.wbg.__wbindgen_closure_wrapper7483 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 3468, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper7484 = function(arg0, arg1, arg2) { + const ret = makeClosure(arg0, arg1, 3469, __wbg_adapter_28); return ret; }; - imports.wbg.__wbindgen_closure_wrapper7485 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 3468, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper7486 = function(arg0, arg1, arg2) { + const ret = makeClosure(arg0, arg1, 3469, __wbg_adapter_28); return ret; }; - imports.wbg.__wbindgen_closure_wrapper7487 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 3468, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper7488 = function(arg0, arg1, arg2) { + const ret = makeClosure(arg0, arg1, 3469, __wbg_adapter_28); return ret; }; - imports.wbg.__wbindgen_closure_wrapper7489 = function(arg0, arg1, arg2) { - const ret = makeClosure(arg0, arg1, 3468, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper7490 = function(arg0, arg1, arg2) { + const ret = makeClosure(arg0, arg1, 3469, __wbg_adapter_28); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9126 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_39); + imports.wbg.__wbindgen_closure_wrapper9127 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4001, __wbg_adapter_39); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9130 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_42); + imports.wbg.__wbindgen_closure_wrapper9131 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4001, __wbg_adapter_42); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9132 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_39); + imports.wbg.__wbindgen_closure_wrapper9133 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4001, __wbg_adapter_39); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9137 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_39); + imports.wbg.__wbindgen_closure_wrapper9138 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4001, __wbg_adapter_39); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9141 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_39); + imports.wbg.__wbindgen_closure_wrapper9142 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4001, __wbg_adapter_39); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9144 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_39); + imports.wbg.__wbindgen_closure_wrapper9145 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4001, __wbg_adapter_39); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9151 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_39); + imports.wbg.__wbindgen_closure_wrapper9152 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4001, __wbg_adapter_39); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9158 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_55); + imports.wbg.__wbindgen_closure_wrapper9159 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4001, __wbg_adapter_55); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9165 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_39); + imports.wbg.__wbindgen_closure_wrapper9166 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4001, __wbg_adapter_39); return ret; }; - imports.wbg.__wbindgen_closure_wrapper9825 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 4058, __wbg_adapter_60); + imports.wbg.__wbindgen_closure_wrapper9826 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 4059, __wbg_adapter_60); return ret; }; imports.wbg.__wbindgen_init_externref_table = function() { diff --git a/snapshots/master/demos/energy-monitor/pkg/energy_monitor_bg.wasm b/snapshots/master/demos/energy-monitor/pkg/energy_monitor_bg.wasm index 13f2ef31a..adf4f7fad 100644 Binary files a/snapshots/master/demos/energy-monitor/pkg/energy_monitor_bg.wasm and b/snapshots/master/demos/energy-monitor/pkg/energy_monitor_bg.wasm differ diff --git a/snapshots/master/demos/energy-monitor/pkg/energy_monitor_bg.wasm.d.ts b/snapshots/master/demos/energy-monitor/pkg/energy_monitor_bg.wasm.d.ts index 85b23924c..a485da12d 100644 --- a/snapshots/master/demos/energy-monitor/pkg/energy_monitor_bg.wasm.d.ts +++ b/snapshots/master/demos/energy-monitor/pkg/energy_monitor_bg.wasm.d.ts @@ -11,11 +11,11 @@ export function __wbindgen_malloc(a: number, b: number): number; export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number; export const __wbindgen_export_2: WebAssembly.Table; export const __wbindgen_export_3: WebAssembly.Table; -export function closure3467_externref_shim(a: number, b: number, c: number): void; -export function closure4001_externref_shim(a: number, b: number, c: number): void; +export function closure3468_externref_shim(a: number, b: number, c: number): void; +export function closure4002_externref_shim(a: number, b: number, c: number): void; export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hac3fa95e7d2b078a(a: number, b: number): void; -export function closure4002_externref_shim(a: number, b: number, c: number, d: number): void; -export function closure4057_externref_shim(a: number, b: number, c: number): void; +export function closure4003_externref_shim(a: number, b: number, c: number, d: number): void; +export function closure4058_externref_shim(a: number, b: number, c: number): void; export function __externref_table_alloc(): number; export function __wbindgen_exn_store(a: number): void; export function __wbindgen_start(): void; diff --git a/snapshots/master/demos/gallery/pkg/cosmic/gallery_bg.wasm b/snapshots/master/demos/gallery/pkg/cosmic/gallery_bg.wasm index 348896873..554714458 100644 Binary files a/snapshots/master/demos/gallery/pkg/cosmic/gallery_bg.wasm and b/snapshots/master/demos/gallery/pkg/cosmic/gallery_bg.wasm differ diff --git a/snapshots/master/demos/gallery/pkg/cupertino/gallery_bg.wasm b/snapshots/master/demos/gallery/pkg/cupertino/gallery_bg.wasm index c9d89c47b..36ac38759 100644 Binary files a/snapshots/master/demos/gallery/pkg/cupertino/gallery_bg.wasm and b/snapshots/master/demos/gallery/pkg/cupertino/gallery_bg.wasm differ diff --git a/snapshots/master/demos/gallery/pkg/fluent/gallery_bg.wasm b/snapshots/master/demos/gallery/pkg/fluent/gallery_bg.wasm index 2e60e9eb3..bb2facb56 100644 Binary files a/snapshots/master/demos/gallery/pkg/fluent/gallery_bg.wasm and b/snapshots/master/demos/gallery/pkg/fluent/gallery_bg.wasm differ diff --git a/snapshots/master/demos/gallery/pkg/material/gallery_bg.wasm b/snapshots/master/demos/gallery/pkg/material/gallery_bg.wasm index db701fdca..e8ff4fe70 100644 Binary files a/snapshots/master/demos/gallery/pkg/material/gallery_bg.wasm and b/snapshots/master/demos/gallery/pkg/material/gallery_bg.wasm differ diff --git a/snapshots/master/demos/home-automation/pkg/home_automation_lib_bg.wasm b/snapshots/master/demos/home-automation/pkg/home_automation_lib_bg.wasm index 6a9d15695..466c35d16 100644 Binary files a/snapshots/master/demos/home-automation/pkg/home_automation_lib_bg.wasm and b/snapshots/master/demos/home-automation/pkg/home_automation_lib_bg.wasm differ diff --git a/snapshots/master/demos/imagefilter/pkg/imagefilter_bg.wasm b/snapshots/master/demos/imagefilter/pkg/imagefilter_bg.wasm index eea222c97..05be7323c 100644 Binary files a/snapshots/master/demos/imagefilter/pkg/imagefilter_bg.wasm and b/snapshots/master/demos/imagefilter/pkg/imagefilter_bg.wasm differ diff --git a/snapshots/master/demos/memory/pkg/memory_bg.wasm b/snapshots/master/demos/memory/pkg/memory_bg.wasm index 32d919f9f..2f99d969c 100644 Binary files a/snapshots/master/demos/memory/pkg/memory_bg.wasm and b/snapshots/master/demos/memory/pkg/memory_bg.wasm differ diff --git a/snapshots/master/demos/plotter/pkg/plotter_bg.wasm b/snapshots/master/demos/plotter/pkg/plotter_bg.wasm index 1a6ffb157..e946e98ab 100644 Binary files a/snapshots/master/demos/plotter/pkg/plotter_bg.wasm and b/snapshots/master/demos/plotter/pkg/plotter_bg.wasm differ diff --git a/snapshots/master/demos/printerdemo/pkg/printerdemo_lib_bg.wasm b/snapshots/master/demos/printerdemo/pkg/printerdemo_lib_bg.wasm index 07f1d232a..78c389601 100644 Binary files a/snapshots/master/demos/printerdemo/pkg/printerdemo_lib_bg.wasm and b/snapshots/master/demos/printerdemo/pkg/printerdemo_lib_bg.wasm differ diff --git a/snapshots/master/demos/slide_puzzle/pkg/slide_puzzle_bg.wasm b/snapshots/master/demos/slide_puzzle/pkg/slide_puzzle_bg.wasm index e3864f09c..7b6b123d8 100644 Binary files a/snapshots/master/demos/slide_puzzle/pkg/slide_puzzle_bg.wasm and b/snapshots/master/demos/slide_puzzle/pkg/slide_puzzle_bg.wasm differ diff --git a/snapshots/master/demos/todo-mvc/pkg/todo_lib_mvc_bg.wasm b/snapshots/master/demos/todo-mvc/pkg/todo_lib_mvc_bg.wasm index 9784fda04..562be185c 100644 Binary files a/snapshots/master/demos/todo-mvc/pkg/todo_lib_mvc_bg.wasm and b/snapshots/master/demos/todo-mvc/pkg/todo_lib_mvc_bg.wasm differ diff --git a/snapshots/master/demos/todo/pkg/todo_lib_bg.wasm b/snapshots/master/demos/todo/pkg/todo_lib_bg.wasm index 325690adb..7f19a462f 100644 Binary files a/snapshots/master/demos/todo/pkg/todo_lib_bg.wasm and b/snapshots/master/demos/todo/pkg/todo_lib_bg.wasm differ diff --git a/snapshots/master/demos/weather-demo/pkg/weather_demo_bg.wasm b/snapshots/master/demos/weather-demo/pkg/weather_demo_bg.wasm index 82cf4dc62..a38acd220 100644 Binary files a/snapshots/master/demos/weather-demo/pkg/weather_demo_bg.wasm and b/snapshots/master/demos/weather-demo/pkg/weather_demo_bg.wasm differ diff --git a/snapshots/master/docs/cpp/api/library_root.html b/snapshots/master/docs/cpp/api/library_root.html index 0d58cdf9a..9903cc9a5 100644 --- a/snapshots/master/docs/cpp/api/library_root.html +++ b/snapshots/master/docs/cpp/api/library_root.html @@ -436,7 +436,7 @@
Creates a new ArrayModel.
-Returns the number of entries in the array model.
-Protected
notifyProtected
notifyNotifies the view that multiple rows are added to the model.
+Returns the number of entries in the array model.
+Protected
notifyProtected
notifyProtected
notifyProtected
notifyProtected
notifyProtected
notifyRemoves the last element from the array and returns it.
+Pushes new values to the array that's backing the model and notifies +
Pushes new values to the array that's backing the model and notifies the run-time about the added rows.
Rest
...values: T[]list of values that will be pushed to the array.
-Returns the data at the specified row.
+Stores the given data on the given row index and notifies run-time about the changed row.
+Stores the given data on the given row index and notifies run-time about the changed row.
index in range 0..(rowCount() - 1).
new data item to store on the given row index
-
ArrayModel wraps a JavaScript array for use in
-.slint
views. The underlying array can be modified with the [[ArrayModel.push]] and [[ArrayModel.remove]] methods.