Interface: CreateWindowOptions
Defined in: xrblocks-uiextensions/src/host.ts:82
Options for UixWindowHost.createWindow.
Everything but config comes from the portable WindowOptionsBase,
so an option means the same thing here as on the IWSDK adapter. id is
optional: leave it out and the host names the window uix-window-<n>.
One option is accepted but not acted on: movable. This host has no
title-bar drag of its own yet - dragging comes from the XR Blocks / desktop
input layer above it - so the flag is recorded and otherwise ignored.
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
closable? | boolean | Title-bar buttons. Every button is OFF unless enabled here, or later through WindowManager.setChrome. The chrome markup may still contain the elements; a disabled button is hidden and its click ignored. | WindowOptionsBase.closable | webxr-uiextensions/src/adapter.ts:209 |
config | unknown | Compiled UIKitML JSON (the { element, classes } shape). | - | xrblocks-uiextensions/src/host.ts:84 |
dockable? | boolean | The DOCK button, which returns the window to where it spawned. | WindowOptionsBase.dockable | webxr-uiextensions/src/adapter.ts:213 |
dockMode? | DockModeValue | - | WindowOptionsBase.dockMode | webxr-uiextensions/src/adapter.ts:196 |
followOffset? | Vec3Tuple | Head-relative offset used in body-follow mode (meters). | WindowOptionsBase.followOffset | webxr-uiextensions/src/adapter.ts:222 |
followSpeed? | number | - | WindowOptionsBase.followSpeed | webxr-uiextensions/src/adapter.ts:223 |
followTolerance? | number | - | WindowOptionsBase.followTolerance | webxr-uiextensions/src/adapter.ts:224 |
handMenu? | Partial<HandMenuOptions> | Where a hand-locked window rides: which hand, which side of the palm, and whether the palm must face the viewer. Defaults: left hand, above the fingertips, gated. Ignored in the other dock modes but kept, so a later setDockMode(id, 'hand-locked') uses it. | WindowOptionsBase.handMenu | webxr-uiextensions/src/adapter.ts:220 |
id? | string | Stable window id. Adapters generate one when it is absent. | WindowOptionsBase.id | webxr-uiextensions/src/adapter.ts:193 |
maxHeight? | number | - | WindowOptionsBase.maxHeight | webxr-uiextensions/src/adapter.ts:201 |
maxWidth? | number | Fit the panel into this box in meters, preserving aspect ratio. | WindowOptionsBase.maxWidth | webxr-uiextensions/src/adapter.ts:200 |
minimizable? | boolean | - | WindowOptionsBase.minimizable | webxr-uiextensions/src/adapter.ts:210 |
movable? | boolean | Whether the title bar drags the window. Default true. | WindowOptionsBase.movable | webxr-uiextensions/src/adapter.ts:203 |
pinnable? | boolean | - | WindowOptionsBase.pinnable | webxr-uiextensions/src/adapter.ts:211 |
position? | Vec3Tuple | World position for world-locked windows. | WindowOptionsBase.position | webxr-uiextensions/src/adapter.ts:198 |
region? | string | Dock straight into this region on spawn. | WindowOptionsBase.region | webxr-uiextensions/src/adapter.ts:226 |
title? | string | Title text written into the window chrome's title element. | WindowOptionsBase.title | webxr-uiextensions/src/adapter.ts:195 |