| asan.js |
|
519 |
- |
| CMakeLists.txt |
|
3468 |
- |
| main.cpp |
|
839 |
- |
| qtloader.js |
Loads the instance of a WASM module.
@param config May contain any key normally accepted by emscripten and the 'qt' extra key, with
the following sub-keys:
- environment: { [name:string] : string }
environment variables set on the instance
- onExit: (exitStatus: { text: string, code?: number, crashed: bool }) => void
called when the application has exited for any reason. There are two cases:
aborted: crashed is true, text contains an error message.
exited: crashed is false, code contians the exit code.
Note that by default Emscripten does not exit when main() returns. This behavior
is controlled by the EXIT_RUNTIME linker flag; set "-s EXIT_RUNTIME=1" to make
Emscripten tear down the runtime and exit when main() returns.
- containerElements: HTMLDivElement[]
Array of host elements for Qt screens. Each of these elements is mapped to a QScreen on
launch.
- fontDpi: number
Specifies font DPI for the instance
- onLoaded: () => void
Called when the module has loaded, at the point in time where any loading placeholder
should be hidden and the application window should be shown.
- entryFunction: (emscriptenConfig: object) => Promise<EmscriptenModule>
Qt always uses emscripten's MODULARIZE option. This is the MODULARIZE entry function.
- wasmFile: string
The wasm file to download and create the instance from. Specifing the wasm file
makes qtloader take control over the download, which allows it to provide progress
information.
- module: Promise<WebAssembly.Module>
The module to create the instance from (optional). Specifying the module allows optimizing
use cases where several instances are created from a single WebAssembly source.
- qtdir: string
Path to Qt installation. This path will be used for loading Qt shared libraries and plugins.
The path is set to 'qt' by default, and is relative to the path of the web page's html file.
This property is not in use when static linking is used, since this build mode includes all
libraries and plugins in the wasm file.
- onProgress: (receivedBytes: number, totalBytes: number, percent: number) => void
Called as the wasm file and the preload files download. totalBytes grows as
each download reports its content-length, so percent can step backwards early
on; it is a progress indication, not a monotonic one. A server that does not
send content-length contributes received bytes but no total.
- preload: [string]: Array of file paths to json-encoded files which specifying which files to preload.
The preloaded files will be downloaded at application startup and copied to the in-memory file
system provided by Emscripten.
Each json file must contain an array of source, destination objects:
[
{
"source": "path/to/source",
"destination": "/path/to/destination"
},
...
]
The source path is relative to the html file path. The destination path must be
an absolute path.
$QTDIR may be used as a placeholder for the "qtdir" configuration property (see @qtdir), for instance:
"source": "$QTDIR/plugins/imageformats/libqjpeg.so"
- localFonts.requestPermission: bool
Whether Qt should request for local fonts access permission on startup (default false).
- localFonts.familiesCollection string
Specifies a collection of local fonts to load. Possible values are:
"NoFontFamilies" : Don't load any font families
"DefaultFontFamilies" : A subset of available font families; currently the "web-safe" fonts (default).
"AllFontFamilies" : All local font families (not reccomended)
- localFonts.extraFamilies: [string]
Adds additional font families to be loaded at startup.
@return Promise<instance: EmscriptenModule>
The promise is resolved when the module has been instantiated and its main function has been
called.
@see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/emscripten for
EmscriptenModule
|
19949 |
- |
| qwasmaccessibility.cpp |
|
57625 |
- |
| qwasmaccessibility.h |
|
5527 |
- |
| qwasmbackingstore.cpp |
|
3917 |
- |
| qwasmbackingstore.h |
|
1231 |
- |
| qwasmbase64iconstore.cpp |
|
1279 |
- |
| qwasmbase64iconstore.h |
|
754 |
- |
| qwasmclipboard.cpp |
|
9374 |
- |
| qwasmclipboard.h |
|
1499 |
- |
| qwasmcompositor.cpp |
|
5535 |
- |
| qwasmcompositor.h |
|
1675 |
- |
| qwasmcssstyle.cpp |
|
5978 |
- |
| qwasmcssstyle.h |
|
430 |
- |
| qwasmcursor.cpp |
|
2941 |
- |
| qwasmcursor.h |
|
413 |
- |
| qwasmdom.cpp |
|
14295 |
- |
| qwasmdom.h |
|
1704 |
- |
| qwasmdrag.cpp |
|
15132 |
- |
| qwasmdrag.h |
|
1273 |
- |
| qwasmevent.cpp |
|
8413 |
- |
| qwasmevent.h |
|
3995 |
- |
| qwasmeventdispatcher.cpp |
|
730 |
- |
| qwasmeventdispatcher.h |
|
523 |
- |
| qwasmfiledialoghelper.cpp |
|
3594 |
- |
| qwasmfiledialoghelper.h |
|
1671 |
- |
| qwasmfontdatabase.cpp |
|
12835 |
- |
| qwasmfontdatabase.h |
|
1516 |
- |
| qwasminputcontext.cpp |
|
16427 |
- |
| qwasminputcontext.h |
|
2258 |
- |
| qwasmintegration.cpp |
|
15168 |
- |
| qwasmintegration.h |
|
3780 |
- |
| qwasmkeytranslator.cpp |
|
12079 |
- |
| qwasmkeytranslator.h |
|
484 |
- |
| qwasmoffscreensurface.cpp |
|
1275 |
- |
| qwasmoffscreensurface.h |
|
763 |
- |
| qwasmopenglcontext.cpp |
|
7955 |
- |
| qwasmopenglcontext.h |
|
1620 |
- |
| qwasmplatform.cpp |
|
1254 |
- |
| qwasmplatform.h |
|
499 |
- |
| qwasmscreen.cpp |
|
10836 |
- |
| qwasmscreen.h |
|
2622 |
- |
| qwasmservices.cpp |
|
535 |
- |
| qwasmservices.h |
|
435 |
- |
| qwasmtheme.cpp |
|
5906 |
- |
| qwasmtheme.h |
|
3099 |
- |
| qwasmwindow.cpp |
|
49020 |
- |
| qwasmwindow.h |
|
8658 |
- |
| qwasmwindownonclientarea.cpp |
|
17544 |
- |
| qwasmwindownonclientarea.h |
|
6172 |
- |
| qwasmwindowstack.h |
|
3395 |
- |
| qwasmwindowstack.inc |
insert a window at the correct location.
There are three groups
StayOnBottom
Regular
StayOnTop
In addition there is StayAboveParent which
can place the window in either of the
three above groups, depending on which
group the transient parent resides in.
insertAtRegionBegin controls the placement
within each of the groups. Either at the end
or at the beginning.
|
12582 |
- |
| qwasmwindowtreenode.cpp |
|
251 |
- |
| qwasmwindowtreenode.h |
|
1623 |
- |
| qwasmwindowtreenode.inc |
QWASMWINDOWTREENODE_INC |
2761 |
- |
| resources |
|
|
- |
| wasm.json |
|
27 |
- |
| wasm_shell.html |
@APPNAME@ |
3010 |
- |