{"id":"ui--yuiVirtualCollection","name":"yuiVirtualCollection","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiVirtualCollection","description":"A yui virtual collection record carrying kind, itemCount, itemExtent, overscanRows, crossAxisCount, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"kind","kind":"field","type":"text","description":"Stores kind as text.","signature":"text kind","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"itemCount","kind":"field","type":"int","description":"Stores item count as int.","signature":"int itemCount","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"itemExtent","kind":"field","type":"int","description":"Stores item extent as int.","signature":"int itemExtent","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"overscanRows","kind":"field","type":"int","description":"Stores overscan rows as int.","signature":"int overscanRows","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"crossAxisCount","kind":"field","type":"int","description":"Stores cross axis count as int.","signature":"int crossAxisCount","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"stableKeyPrefix","kind":"field","type":"text","description":"Stores stable key prefix as text.","signature":"text stableKeyPrefix","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"realizedStart","kind":"field","type":"int","description":"Stores realized start as int.","signature":"int realizedStart","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"realizedEnd","kind":"field","type":"int","description":"Stores realized end as int.","signature":"int realizedEnd","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"realizedCount","kind":"field","type":"int","description":"Stores realized count as int.","signature":"int realizedCount","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"peakRealizedCount","kind":"field","type":"int","description":"Stores peak realized count as int.","signature":"int peakRealizedCount","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"recycledCount","kind":"field","type":"int","description":"Stores recycled count as int.","signature":"int recycledCount","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"generation","kind":"field","type":"int","description":"Stores generation as int.","signature":"int generation","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"selectedKey","kind":"field","type":"text","description":"Stores selected key as text.","signature":"text selectedKey","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"focusedKey","kind":"field","type":"text","description":"Stores focused key as text.","signature":"text focusedKey","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"source","kind":"field","type":"text","description":"Stores source as text.","signature":"text source","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"diagnostic","kind":"field","type":"text","description":"Stores diagnostic as text.","signature":"text diagnostic","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiVirtualCollection","kind":"constructor","parameters":[{"name":"kind","type":"text","description":"Kind."},{"name":"itemCount","type":"int","description":"Item count."},{"name":"itemExtent","type":"int","description":"Item extent."},{"name":"overscanRows","type":"int","description":"Overscan rows."},{"name":"stableKeyPrefix","type":"text","description":"Stable key prefix."},{"name":"source","type":"text","description":"Source."}],"returns":"void","signature":"yuiVirtualCollection(text kind, int itemCount, int itemExtent, int overscanRows, text stableKeyPrefix, text source)","description":"Yui virtual collection.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"ValidationIssue","kind":"method","parameters":[],"returns":"text","signature":"ValidationIssue() returns text","description":"Validation issue.","tags":["thing","method","ui"],"exampleId":"method-ValidationIssue-17","updated":"2026-09-09"},{"name":"SetCrossAxisCount","kind":"method","parameters":[{"name":"count","type":"int","description":"Count."}],"returns":"bool","signature":"SetCrossAxisCount(int count) returns bool","description":"Set cross axis count.","tags":["thing","method","ui"],"exampleId":"method-SetCrossAxisCount-18","updated":"2026-09-09"},{"name":"StableKey","kind":"method","parameters":[{"name":"index","type":"int","description":"Index."}],"returns":"text","signature":"StableKey(int index) returns text","description":"Stable key.","tags":["thing","method","ui"],"exampleId":"method-StableKey-19","updated":"2026-09-09"},{"name":"Realize","kind":"method","parameters":[{"name":"offset","type":"int","description":"Offset."},{"name":"viewportExtent","type":"int","description":"Viewport extent."}],"returns":"yuiVirtualRange","signature":"Realize(int offset, int viewportExtent) returns yuiVirtualRange","description":"Realize.","tags":["thing","method","ui"],"exampleId":"method-Realize-20","updated":"2026-09-09"},{"name":"IsRealized","kind":"method","parameters":[{"name":"index","type":"int","description":"Index."}],"returns":"bool","signature":"IsRealized(int index) returns bool","description":"Is realized.","tags":["thing","method","ui"],"exampleId":"method-IsRealized-21","updated":"2026-09-09"},{"name":"SelectKey","kind":"method","parameters":[{"name":"stableKey","type":"text","description":"Stable key."}],"returns":"bool","signature":"SelectKey(text stableKey) returns bool","description":"Select key.","tags":["thing","method","ui"],"exampleId":"method-SelectKey-22","updated":"2026-09-09"},{"name":"FocusKey","kind":"method","parameters":[{"name":"stableKey","type":"text","description":"Stable key."}],"returns":"bool","signature":"FocusKey(text stableKey) returns bool","description":"Focus key.","tags":["thing","method","ui"],"exampleId":"method-FocusKey-23","updated":"2026-09-09"},{"name":"RenderReport","kind":"method","parameters":[],"returns":"text","signature":"RenderReport() returns text","description":"Render report.","tags":["thing","method","ui"],"exampleId":"method-RenderReport-24","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/layout-virtual.yh","line":25,"sha256":"422119501235f2ef4675b1afd3c947951cfc0bedf81255f7a854da295bb01786"},"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 yuiVirtualCollection","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.\nyuiVirtualCollection sample = yuiVirtualCollection(\"kind\", 1, 1, 1, \"stable Key Prefix\", \"example\")\nConsole.Log(Text.From(sample.kind))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivirtualcollection\"\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":"e02fd2052863da5fdc816589a01abf8cb644d3a344b6a0627198fa3133cc5c63","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidationIssue-17","title":"yuiVirtualCollection.ValidationIssue","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Validation issue.\nyuiVirtualCollection instance = yuiVirtualCollection(\"kind\", 1, 1, 1, \"stable Key Prefix\", \"example\")\ntext result = instance.ValidationIssue()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivirtualcollection\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"5540a7b8bbbd6cd5f40970ed4631a3438626304bfe194f157c4077cac12a8c42","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-SetCrossAxisCount-18","title":"yuiVirtualCollection.SetCrossAxisCount","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Set cross axis count.\nyuiVirtualCollection instance = yuiVirtualCollection(\"kind\", 1, 1, 1, \"stable Key Prefix\", \"example\")\nint argument_count = 1\nbool result = instance.SetCrossAxisCount(argument_count)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivirtualcollection\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"d7379da3fc8a9a8cea8c14dcfd4be9833ee21f5a0928fd909950349182f22570","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-StableKey-19","title":"yuiVirtualCollection.StableKey","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Stable key.\nyuiVirtualCollection instance = yuiVirtualCollection(\"kind\", 1, 1, 1, \"stable Key Prefix\", \"example\")\nint argument_index = 1\ntext result = instance.StableKey(argument_index)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivirtualcollection\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"d37f4e1c6af3870bc8e70292fe2048901af5bac899632c3098e6eaa44060f591","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Realize-20","title":"yuiVirtualCollection.Realize","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Realize.\nyuiVirtualCollection instance = yuiVirtualCollection(\"kind\", 1, 1, 1, \"stable Key Prefix\", \"example\")\nint argument_offset = 1\nint argument_viewportExtent = 1\nyuiVirtualRange result = instance.Realize(argument_offset, argument_viewportExtent)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivirtualcollection\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"697cc55a7cac3db7599f837818d7a8158ec4e07671d6dbeb1e20bd866cfa9075","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsRealized-21","title":"yuiVirtualCollection.IsRealized","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Is realized.\nyuiVirtualCollection instance = yuiVirtualCollection(\"kind\", 1, 1, 1, \"stable Key Prefix\", \"example\")\nint argument_index = 1\nbool result = instance.IsRealized(argument_index)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivirtualcollection\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"2c74744f6e9c5242cc34b9767e8e39ed93d7be3e8425a04aa6ccbe6865ae4933","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-SelectKey-22","title":"yuiVirtualCollection.SelectKey","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Select key.\nyuiVirtualCollection instance = yuiVirtualCollection(\"kind\", 1, 1, 1, \"stable Key Prefix\", \"example\")\ntext argument_stableKey = \"argument stable Key\"\nbool result = instance.SelectKey(argument_stableKey)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivirtualcollection\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"6ace999728f291a622c11095fb65e0ca2461198f1c79f64820dc021cd09eee4e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-FocusKey-23","title":"yuiVirtualCollection.FocusKey","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Focus key.\nyuiVirtualCollection instance = yuiVirtualCollection(\"kind\", 1, 1, 1, \"stable Key Prefix\", \"example\")\ntext argument_stableKey = \"argument stable Key\"\nbool result = instance.FocusKey(argument_stableKey)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivirtualcollection\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"6a442303038076dfafaf2bece8661608038facd6c0023cf309aac3996732fa96","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-RenderReport-24","title":"yuiVirtualCollection.RenderReport","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Render report.\nyuiVirtualCollection instance = yuiVirtualCollection(\"kind\", 1, 1, 1, \"stable Key Prefix\", \"example\")\ntext result = instance.RenderReport()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivirtualcollection\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"bd5685a5577d2a05013c174576f9e9cb71ea6b8a6a1137c578ae43f78a57315b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["kind","itemCount","itemExtent","overscanRows","crossAxisCount","stableKeyPrefix","realizedStart","realizedEnd","realizedCount","peakRealizedCount","recycledCount","generation","selectedKey","focusedKey","source","diagnostic","yuiVirtualCollection","ValidationIssue","SetCrossAxisCount","StableKey","Realize","IsRealized","SelectKey","FocusKey","RenderReport"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiVirtualCollection","json":"https://demonhunterlabs.com/reference/items/ui--yuiVirtualCollection.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiVirtualCollection.md"}
