diff --git a/snapshots/master/demos/android/energy-monitor.apk b/snapshots/master/demos/android/energy-monitor.apk index d845360bc..71ce8dc18 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 bacaf4a6d..c98392c09 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 7bfdc8b93..2a70a1b90 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_bg.wasm b/snapshots/master/demos/energy-monitor/pkg/energy_monitor_bg.wasm index 8f3a88125..5265e7134 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/gallery/pkg/cosmic/gallery_bg.wasm b/snapshots/master/demos/gallery/pkg/cosmic/gallery_bg.wasm index f25f74c77..7f2707c1e 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 552a1ecad..9334b77af 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 b85a14fb5..96ca134ea 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 b6b63a5b6..ee3a7ddaf 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/imagefilter/pkg/imagefilter_bg.wasm b/snapshots/master/demos/imagefilter/pkg/imagefilter_bg.wasm index 329b667c0..335f08b61 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 5e8f74b2b..acd5ef1b3 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 1871839fb..39324717e 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 0ea75f116..c9a369aa5 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/printerdemo_old/pkg/printerdemo_old_bg.wasm b/snapshots/master/demos/printerdemo_old/pkg/printerdemo_old_bg.wasm index 830b85817..41c6fd97b 100644 Binary files a/snapshots/master/demos/printerdemo_old/pkg/printerdemo_old_bg.wasm and b/snapshots/master/demos/printerdemo_old/pkg/printerdemo_old_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 9a7a46eab..20c5da184 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 5af14007a..621540ddc 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 75a14d4b8..134224ef5 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 c66cd89e9..c14d3661d 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/node/classes/ArrayModel.html b/snapshots/master/docs/node/classes/ArrayModel.html index 7828152a8..c3f1af811 100644 --- a/snapshots/master/docs/node/classes/ArrayModel.html +++ b/snapshots/master/docs/node/classes/ArrayModel.html @@ -1,6 +1,6 @@ ArrayModel | slint-ui

Class ArrayModel<T>

ArrayModel wraps a JavaScript array for use in .slint views. The underlying array can be modified with the [[ArrayModel.push]] and [[ArrayModel.remove]] methods.

-

Type Parameters

  • T

Hierarchy (view full)

Constructors

Type Parameters

  • T

Hierarchy (view full)

Constructors

Accessors

Methods

[iterator] entries @@ -16,32 +16,32 @@ setRowData values

Constructors

Accessors

  • get length(): number
  • Returns the number of entries in the array model.

    -

    Returns number

Methods

  • Returns an iterable of key, value pairs for every entry in the array.

    -

    Returns IterableIterator<[number, T]>

  • Notifies the view that the complete data must be reload.

    -

    Returns void

Accessors

  • get length(): number
  • Returns the number of entries in the array model.

    +

    Returns number

Methods

  • Returns an iterable of key, value pairs for every entry in the array.

    +

    Returns IterableIterator<[number, T]>

  • Notifies the view that the complete data must be reload.

    +

    Returns void

  • Notifies the view that multiple rows are added to the model.

    Parameters

    • row: number

      index of the first added row.

    • count: number

      the number of added items.

      -

    Returns void

  • Notifies the view that the data of the current row is changed.

    +

Returns void

  • Notifies the view that the data of the current row is changed.

    Parameters

    • row: number

      index of the changed row.

      -

    Returns void

  • Notifies the view that multiple rows are removed to the model.

    +

Returns void

Returns void

Returns void

Returns void

\ No newline at end of file +

Returns void

\ No newline at end of file diff --git a/snapshots/master/docs/node/classes/CompileError.html b/snapshots/master/docs/node/classes/CompileError.html index 7fd43fccf..0037757c8 100644 --- a/snapshots/master/docs/node/classes/CompileError.html +++ b/snapshots/master/docs/node/classes/CompileError.html @@ -1,5 +1,5 @@ CompileError | slint-ui

Class CompileError

Represents an errors that can be emitted by the compiler.

-

Hierarchy

  • Error
    • CompileError

Constructors

Hierarchy

  • Error
    • CompileError

Constructors

Properties

cause? diagnostics message @@ -11,8 +11,8 @@

Constructors

  • Creates a new CompileError.

    Parameters

    • message: string

      human-readable description of the error.

    • diagnostics: Diagnostic[]

      represent a list of diagnostic items emitted while compiling .slint code.

      -

    Returns CompileError

Properties

cause?: unknown
diagnostics: Diagnostic[]

List of Diagnostic items emitted while compiling .slint code.

-
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

+

Returns CompileError

Properties

cause?: unknown
diagnostics: Diagnostic[]

List of Diagnostic items emitted while compiling .slint code.

+
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

\ No newline at end of file diff --git a/snapshots/master/docs/node/classes/Model.html b/snapshots/master/docs/node/classes/Model.html index 0d7b4eaa2..54937ca75 100644 --- a/snapshots/master/docs/node/classes/Model.html +++ b/snapshots/master/docs/node/classes/Model.html @@ -6,7 +6,7 @@

Example

As an example let's see the implementation of ArrayModel

export class ArrayModel<T> extends Model<T> {
private a: Array<T>

constructor(arr: Array<T>) {
super();
this.a = arr;
}

rowCount() {
return this.a.length;
}

rowData(row: number) {
return this.a[row];
}

setRowData(row: number, data: T) {
this.a[row] = data;
this.notifyRowDataChanged(row);
}

push(...values: T[]) {
let size = this.a.length;
Array.prototype.push.apply(this.a, values);
this.notifyRowAdded(size, arguments.length);
}

remove(index: number, size: number) {
let r = this.a.splice(index, size);
this.notifyRowRemoved(index, size);
}

get length(): number {
return this.a.length;
}

values(): IterableIterator<T> {
return this.a.values();
}

entries(): IterableIterator<[number, T]> {
return this.a.entries()
}
}
-

Hierarchy (view full)

Implements

Constructors

Hierarchy (view full)

Implements

  • Iterable<T>

Constructors

Methods

  • Returns Iterator<T, any, undefined>

  • Notifies the view that the complete data must be reload.

    -

    Returns void

  • Notifies the view that multiple rows are added to the model.

    +

Constructors

Methods

Returns void

Returns void

Returns void

\ No newline at end of file +

Returns void

\ No newline at end of file diff --git a/snapshots/master/docs/node/functions/loadFile.html b/snapshots/master/docs/node/functions/loadFile.html index 68fc46e8b..ab52ae64b 100644 --- a/snapshots/master/docs/node/functions/loadFile.html +++ b/snapshots/master/docs/node/functions/loadFile.html @@ -15,4 +15,4 @@ These instances offer properties and event handlers, adhering to the ComponentHandle interface. For further information on the available properties, refer to Instantiating A Component.

Throws

CompileError if errors occur during compilation.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/snapshots/master/docs/node/functions/loadSource.html b/snapshots/master/docs/node/functions/loadSource.html index ecb37c9f2..554d2e1d5 100644 --- a/snapshots/master/docs/node/functions/loadSource.html +++ b/snapshots/master/docs/node/functions/loadSource.html @@ -13,4 +13,4 @@ These instances offer properties and event handlers, adhering to the ComponentHandle interface. For further information on the available properties, refer to Instantiating A Component.

Throws

CompileError if errors occur during compilation.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/snapshots/master/docs/node/functions/quitEventLoop.html b/snapshots/master/docs/node/functions/quitEventLoop.html index 669cfed6a..607e242b2 100644 --- a/snapshots/master/docs/node/functions/quitEventLoop.html +++ b/snapshots/master/docs/node/functions/quitEventLoop.html @@ -1,3 +1,3 @@ quitEventLoop | slint-ui

Function quitEventLoop

  • Stops a spinning event loop. This function returns immediately, and the promise returned from run_event_loop() will resolve in a later tick of the nodejs event loop.

    -

    Returns void

\ No newline at end of file +

Returns void

\ No newline at end of file diff --git a/snapshots/master/docs/node/functions/runEventLoop.html b/snapshots/master/docs/node/functions/runEventLoop.html index 987a15c43..fb190fd40 100644 --- a/snapshots/master/docs/node/functions/runEventLoop.html +++ b/snapshots/master/docs/node/functions/runEventLoop.html @@ -2,4 +2,4 @@

If the event loop is already running, then this function returns the same promise as from the earlier invocation.

Parameters

Returns Promise<unknown>

\ No newline at end of file +

Returns Promise<unknown>

\ No newline at end of file diff --git a/snapshots/master/docs/node/interfaces/ComponentHandle.html b/snapshots/master/docs/node/interfaces/ComponentHandle.html index 11c3197c8..20683780c 100644 --- a/snapshots/master/docs/node/interfaces/ComponentHandle.html +++ b/snapshots/master/docs/node/interfaces/ComponentHandle.html @@ -1,16 +1,16 @@ ComponentHandle | slint-ui

Interface ComponentHandle

This interface describes the public API of a Slint component that is common to all instances. Use this to show() the window on the screen, access the window and subsequent window properties, or start the Slint event loop with run().

-
interface ComponentHandle {
    get window(): Window;
    hide(): any;
    run(): Promise<unknown>;
    show(): any;
}

Accessors

interface ComponentHandle {
    get window(): Window;
    hide(): any;
    run(): Promise<unknown>;
    show(): any;
}

Accessors

Methods

Accessors

  • get window(): Window
  • Returns the Window associated with this component instance. The window API can be used to control different aspects of the integration into the windowing system, such as the position on the screen.

    -

    Returns Window

Methods

  • Hides the component's window, so that it is not visible anymore.

    -

    Returns any

  • Shows the window and runs the event loop. The returned promise is resolved when the event loop +

    Returns Window

Methods

  • Hides the component's window, so that it is not visible anymore.

    +

    Returns any

  • Shows the window and runs the event loop. The returned promise is resolved when the event loop is terminated, for example when the last window was closed, or quitEventLoop was called.

    This function is a convenience for calling show, followed by runEventLoop, and hide when the event loop's promise is resolved.

    -

    Returns Promise<unknown>

  • Shows the component's window on the screen.

    -

    Returns any

\ No newline at end of file +

Returns Promise<unknown>

\ No newline at end of file diff --git a/snapshots/master/docs/node/interfaces/ImageData.html b/snapshots/master/docs/node/interfaces/ImageData.html index 618c2e519..47583873d 100644 --- a/snapshots/master/docs/node/interfaces/ImageData.html +++ b/snapshots/master/docs/node/interfaces/ImageData.html @@ -1,12 +1,12 @@ ImageData | slint-ui

Interface ImageData

An image data type that can be displayed by the Image element.

This interface is inspired by the web ImageData interface.

-
interface ImageData {
    path?: string;
    get data(): Uint8Array;
    get height(): number;
    get width(): number;
}

Properties

interface ImageData {
    path?: string;
    get data(): Uint8Array;
    get height(): number;
    get width(): number;
}

Properties

Accessors

Properties

path?: string

Returns the path of the image, if it was loaded from disk. Otherwise the property is undefined.

-

Accessors

  • get data(): Uint8Array
  • Returns the image as buffer.

    -

    Returns Uint8Array

  • get height(): number
  • Returns the height of the image in pixels.

    -

    Returns number

  • get width(): number
  • Returns the width of the image in pixels.

    -

    Returns number

\ No newline at end of file +

Accessors

\ No newline at end of file diff --git a/snapshots/master/docs/node/interfaces/LoadFileOptions.html b/snapshots/master/docs/node/interfaces/LoadFileOptions.html index 942a77a7d..ef20d93d6 100644 --- a/snapshots/master/docs/node/interfaces/LoadFileOptions.html +++ b/snapshots/master/docs/node/interfaces/LoadFileOptions.html @@ -1,10 +1,10 @@ LoadFileOptions | slint-ui

Interface LoadFileOptions

LoadFileOptions are used to defines different optional parameters that can be used to configure the compiler.

-
interface LoadFileOptions {
    includePaths?: string[];
    libraryPaths?: Record<string, string>;
    quiet?: boolean;
    style?: string;
}

Properties

interface LoadFileOptions {
    includePaths?: string[];
    libraryPaths?: Record<string, string>;
    quiet?: boolean;
    style?: string;
}

Properties

includePaths?: string[]

Sets the include paths used for looking up .slint imports to the specified vector of paths.

-
libraryPaths?: Record<string, string>

Sets library paths used for looking up @library imports to the specified map of library names to paths.

-
quiet?: boolean

If set to true warnings from the compiler will not be printed to the console.

-
style?: string

Sets the widget style the compiler is currently using when compiling .slint files.

-
\ No newline at end of file +
libraryPaths?: Record<string, string>

Sets library paths used for looking up @library imports to the specified map of library names to paths.

+
quiet?: boolean

If set to true warnings from the compiler will not be printed to the console.

+
style?: string

Sets the widget style the compiler is currently using when compiling .slint files.

+
\ No newline at end of file diff --git a/snapshots/master/docs/node/interfaces/Point.html b/snapshots/master/docs/node/interfaces/Point.html index ae2826036..9084775fd 100644 --- a/snapshots/master/docs/node/interfaces/Point.html +++ b/snapshots/master/docs/node/interfaces/Point.html @@ -1,6 +1,6 @@ Point | slint-ui

Interface Point

Represents a two-dimensional point.

-
interface Point {
    x: number;
    y: number;
}

Properties

x +
interface Point {
    x: number;
    y: number;
}

Properties

x y

Properties

x: number

Defines the x coordinate of the point.

-
y: number

Defines the y coordinate of the point.

-
\ No newline at end of file +
y: number

Defines the y coordinate of the point.

+
\ No newline at end of file diff --git a/snapshots/master/docs/node/interfaces/Size.html b/snapshots/master/docs/node/interfaces/Size.html index a34efeb3c..c33967c0a 100644 --- a/snapshots/master/docs/node/interfaces/Size.html +++ b/snapshots/master/docs/node/interfaces/Size.html @@ -1,6 +1,6 @@ Size | slint-ui

Interface Size

Represents a two-dimensional size.

-
interface Size {
    height: number;
    width: number;
}

Properties

interface Size {
    height: number;
    width: number;
}

Properties

Properties

height: number

Defines the height length of the size.

-
width: number

Defines the width length of the size.

-
\ No newline at end of file +
width: number

Defines the width length of the size.

+
\ No newline at end of file diff --git a/snapshots/master/docs/node/interfaces/Window.html b/snapshots/master/docs/node/interfaces/Window.html index 8a7c8b973..253fe0ea5 100644 --- a/snapshots/master/docs/node/interfaces/Window.html +++ b/snapshots/master/docs/node/interfaces/Window.html @@ -1,7 +1,7 @@ Window | slint-ui

Interface Window

This type represents a window towards the windowing system, that's used to render the scene of a component. It provides API to control windowing system specific aspects such as the position on the screen.

-
interface Window {
    fullscreen: boolean;
    logicalPosition: Point;
    logicalSize: Size;
    maximized: boolean;
    minimized: boolean;
    physicalPosition: Point;
    physicalSize: Size;
    get visible(): boolean;
    hide(): void;
    requestRedraw(): void;
    show(): void;
}

Properties

interface Window {
    fullscreen: boolean;
    logicalPosition: Point;
    logicalSize: Size;
    maximized: boolean;
    minimized: boolean;
    physicalPosition: Point;
    physicalSize: Size;
    get visible(): boolean;
    hide(): void;
    requestRedraw(): void;
    show(): void;
}

Properties

fullscreen: boolean

Gets or sets the window's fullscreen state *

-
logicalPosition: Point

Gets or sets the logical position of the window on the screen.

-
logicalSize: Size

Gets or sets the logical size of the window on the screen,

-
maximized: boolean

Gets or sets the window's maximized state *

-
minimized: boolean

Gets or sets teh window's minimized state *

-
physicalPosition: Point

Gets or sets the physical position of the window on the screen.

-
physicalSize: Size

Gets or sets the physical size of the window on the screen,

-

Accessors

  • get visible(): boolean
  • Returns the visibility state of the window. This function can return false even if you previously called show() +

logicalPosition: Point

Gets or sets the logical position of the window on the screen.

+
logicalSize: Size

Gets or sets the logical size of the window on the screen,

+
maximized: boolean

Gets or sets the window's maximized state *

+
minimized: boolean

Gets or sets teh window's minimized state *

+
physicalPosition: Point

Gets or sets the physical position of the window on the screen.

+
physicalSize: Size

Gets or sets the physical size of the window on the screen,

+

Accessors

  • get visible(): boolean
  • Returns the visibility state of the window. This function can return false even if you previously called show() on it, for example if the user minimized the window.

    -

    Returns boolean

Methods

  • Hides the window, so that it is not visible anymore.

    -

    Returns void

  • Issues a request to the windowing system to re-render the contents of the window.

    -

    Returns void

  • Shows the window on the screen. An additional strong reference on the +

    Returns boolean

Methods

  • Hides the window, so that it is not visible anymore.

    +

    Returns void

  • Issues a request to the windowing system to re-render the contents of the window.

    +

    Returns void

  • Shows the window on the screen. An additional strong reference on the associated component is maintained while the window is visible.

    -

    Returns void

\ No newline at end of file +

Returns void

\ No newline at end of file diff --git a/snapshots/master/docs/slint/genindex.html b/snapshots/master/docs/slint/genindex.html index 06436e73a..0dff42a47 100644 --- a/snapshots/master/docs/slint/genindex.html +++ b/snapshots/master/docs/slint/genindex.html @@ -342,7 +342,7 @@ +