{"id":"window.multi--CreateNativeWindowSpec","name":"CreateNativeWindowSpec","owner":"yeho","package":"window.multi","kind":"function","signature":"external CreateNativeWindowSpec(text id, text ownerId, text title, int width, int height, bool visible) returns nativeWindowSpec","description":"Create native window spec from the supplied values.","context":"Describe multiple windows, input events, lifecycle, and capabilities with typed records.","parameters":[{"name":"id","type":"text","description":"Supply id as text."},{"name":"ownerId","type":"text","description":"Supply owner id as text."},{"name":"title","type":"text","description":"Supply title as text."},{"name":"width","type":"int","description":"Supply width as int."},{"name":"height","type":"int","description":"Supply height as int."},{"name":"visible","type":"bool","description":"Supply visible as bool."}],"returns":"nativeWindowSpec","members":[],"tags":["cpu","function","multi","source-example","window","window.multi","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/window/multi/00-contracts.yh","line":222,"sha256":"434678db31e43543673b57de71bfacefcb1fd4eaaccfeb99e92fd5d2816ec492"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use CreateNativeWindowSpec","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using window.multi\n\n// Describe multiple windows, input events, lifecycle, and capabilities with typed records.\ntext id = \"id\"\ntext ownerId = \"owner Id\"\ntext title = \"Inventory\"\nint width = 1\nint height = 1\nbool visible = true\nnativeWindowSpec result = CreateNativeWindowSpec(id, ownerId, title, width, height, visible)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.window_multi__createnativewindowspec\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"window.multi\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/window/multi\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"fd5c3e5ca9cccd1e2d73c739cb08cc274ff3fcee2414f7b4a832ff72d691e007","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=window.multi--CreateNativeWindowSpec","json":"https://demonhunterlabs.com/reference/items/window.multi--CreateNativeWindowSpec.json","markdown":"https://demonhunterlabs.com/reference/text/window.multi--CreateNativeWindowSpec.md"}
