{"id":"host.ui_services--CreateNativeUiDisplay","name":"CreateNativeUiDisplay","owner":"yeho","package":"host.ui_services","kind":"function","signature":"external CreateNativeUiDisplay(text id, int x, int y, int width, int height, int workX, int workY, int workWidth, int workHeight, int scalePercent, bool primary) returns nativeUiDisplayRecord","description":"Create native ui display from the supplied values.","context":"Define host text, editing, clipboard, and accessibility service contracts.","parameters":[{"name":"id","type":"text","description":"Supply id as text."},{"name":"x","type":"int","description":"Supply x as int."},{"name":"y","type":"int","description":"Supply y as int."},{"name":"width","type":"int","description":"Supply width as int."},{"name":"height","type":"int","description":"Supply height as int."},{"name":"workX","type":"int","description":"Supply work x as int."},{"name":"workY","type":"int","description":"Supply work y as int."},{"name":"workWidth","type":"int","description":"Supply work width as int."},{"name":"workHeight","type":"int","description":"Supply work height as int."},{"name":"scalePercent","type":"int","description":"Supply scale percent as int."},{"name":"primary","type":"bool","description":"Supply primary as bool."}],"returns":"nativeUiDisplayRecord","members":[],"tags":["cpu","function","host","host.ui_services","source-example","ui_services","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/host/ui_services/00-contracts.yh","line":229,"sha256":"bb2e0a4fdde32198e4c9a2934b8cf26f08629ff18c08155984a323aacc313a21"},"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 CreateNativeUiDisplay","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using host.ui_services\n\n// Define host text, editing, clipboard, and accessibility service contracts.\ntext id = \"id\"\nint x = 1\nint y = 1\nint width = 1\nint height = 1\nint workX = 1\nint workY = 1\nint workWidth = 1\nint workHeight = 1\nint scalePercent = 1\nbool primary = true\nnativeUiDisplayRecord result = CreateNativeUiDisplay(id, x, y, width, height, workX, workY, workWidth, workHeight, scalePercent, primary)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_ui_services__createnativeuidisplay\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"c4ac96789206042031a058d08b7310440b625cca8e2d51d6a9a301685a0cdd5f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=host.ui_services--CreateNativeUiDisplay","json":"https://demonhunterlabs.com/reference/items/host.ui_services--CreateNativeUiDisplay.json","markdown":"https://demonhunterlabs.com/reference/text/host.ui_services--CreateNativeUiDisplay.md"}
