{"id":"ui--CreateYuiRetainedOwnerFragment","name":"CreateYuiRetainedOwnerFragment","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiRetainedOwnerFragment(text ownerId, int generation, int zOrder, yuiRenderBounds layoutBounds, yuiRenderBounds inkBounds, yuiFragmentDependencySignature dependencies, text source) returns yuiRetainedOwnerFragment","description":"Create yui retained owner fragment from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"ownerId","type":"text","description":"Supply owner id as text."},{"name":"generation","type":"int","description":"Supply generation as int."},{"name":"zOrder","type":"int","description":"Supply z order as int."},{"name":"layoutBounds","type":"yuiRenderBounds","description":"Supply layout bounds as yuiRenderBounds."},{"name":"inkBounds","type":"yuiRenderBounds","description":"Supply ink bounds as yuiRenderBounds."},{"name":"dependencies","type":"yuiFragmentDependencySignature","description":"Supply dependencies as yuiFragmentDependencySignature."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"yuiRetainedOwnerFragment","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/render-50-retained-fragments.yh","line":1378,"sha256":"1062403654e37b95d0b190990ad54290638b64d047aa164ee82220bd91ac0674"},"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 CreateYuiRetainedOwnerFragment","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\ntext ownerId = \"owner Id\"\nint generation = 1\nint zOrder = 1\nyuiRenderBounds layoutBounds = yuiRenderBounds(1, 1, 1, 1)\nyuiRenderBounds inkBounds = yuiRenderBounds(1, 1, 1, 1)\nyuiFragmentDependencySignature dependencies = yuiFragmentDependencySignature(\"layout Key\", \"paint Key\", \"resource Key\", \"motion Key\", \"composite Key\", \"example\")\ntext source = \"example\"\nyuiRetainedOwnerFragment result = CreateYuiRetainedOwnerFragment(ownerId, generation, zOrder, layoutBounds, inkBounds, dependencies, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuiretainedownerfragment\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"7d0f63def759e659babc3b806d097e546987703c1d60f5b8eba2ace5e5c08830","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiRetainedOwnerFragment","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiRetainedOwnerFragment.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiRetainedOwnerFragment.md"}
