window.multi · function ·
CreateNativeWindowSpec
Create native window spec from the supplied values.
Describe multiple windows, input events, lifecycle, and capabilities with typed records.
external CreateNativeWindowSpec(text id, text ownerId, text title, int width, int height, bool visible) returns nativeWindowSpecStatus: source-declared
Parameters
text id- Supply id as text.
text ownerId- Supply owner id as text.
text title- Supply title as text.
int width- Supply width as int.
int height- Supply height as int.
bool visible- Supply visible as bool.
Use CreateNativeWindowSpec
A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.
cpu · source-example · type checked
using window.multi
// Describe multiple windows, input events, lifecycle, and capabilities with typed records.
text id = "id"
text ownerId = "owner Id"
text title = "Inventory"
int width = 1
int height = 1
bool visible = true
nativeWindowSpec result = CreateNativeWindowSpec(id, ownerId, title, width, height, visible)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.window_multi__createnativewindowspec"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "window.multi"
version = "0.1.0"
path = "../../../yeho/packages/window/multi"
Notes and source
Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.
yeho/packages/window/multi/00-contracts.yh:222