{"id":"ui--yuiCommandMap","name":"yuiCommandMap","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiCommandMap","description":"A yui command map record carrying bindings, diagnostic.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"bindings","kind":"field","type":"list of yuiCommandBinding","description":"Stores bindings as list of yuiCommandBinding.","signature":"list of yuiCommandBinding bindings","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":"yuiCommandMap","kind":"constructor","parameters":[],"returns":"void","signature":"yuiCommandMap()","description":"Yui command map.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"BindingIndex","kind":"method","parameters":[{"name":"id","type":"text","description":"Id."}],"returns":"int","signature":"BindingIndex(text id) returns int","description":"Binding index.","tags":["thing","method","ui"],"exampleId":"method-BindingIndex-3","updated":"2026-09-09"},{"name":"AddBinding","kind":"method","parameters":[{"name":"binding","type":"yuiCommandBinding","description":"Binding."}],"returns":"bool","signature":"AddBinding(yuiCommandBinding binding) returns bool","description":"Add binding.","tags":["thing","method","ui"],"exampleId":"method-AddBinding-4","updated":"2026-09-09"},{"name":"SetEnabled","kind":"method","parameters":[{"name":"bindingId","type":"text","description":"Binding id."},{"name":"enabled","type":"bool","description":"Enabled."}],"returns":"bool","signature":"SetEnabled(text bindingId, bool enabled) returns bool","description":"Set enabled.","tags":["thing","method","ui"],"exampleId":"method-SetEnabled-5","updated":"2026-09-09"},{"name":"Resolve","kind":"method","parameters":[{"name":"tree","type":"yuiTree","description":"Tree."},{"name":"focusedNodeId","type":"text","description":"Focused node id."},{"name":"chord","type":"text","description":"Chord."}],"returns":"yuiCommandResolution","signature":"Resolve(yuiTree tree, text focusedNodeId, text chord) returns yuiCommandResolution","description":"Resolve.","tags":["thing","method","ui"],"exampleId":"method-Resolve-6","updated":"2026-09-09"},{"name":"RenderCommandMapReport","kind":"method","parameters":[],"returns":"text","signature":"RenderCommandMapReport() returns text","description":"Render command map report.","tags":["thing","method","ui"],"exampleId":"method-RenderCommandMapReport-7","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/interaction-commands.yh","line":61,"sha256":"e2e8c72c706ccbd69c0b2ddd233acc049f721eab01ee309405ef53839a4826b1"},"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 yuiCommandMap","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.\nyuiCommandMap sample = yuiCommandMap()\nConsole.Log(Text.From(sample.diagnostic))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuicommandmap\"\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":"e1fc849eefbb90946b2d4415efcb4816bccf490433362a361b9367f99adc9ba1","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-BindingIndex-3","title":"yuiCommandMap.BindingIndex","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Binding index.\nyuiCommandMap instance = yuiCommandMap()\ntext argument_id = \"argument id\"\nint result = instance.BindingIndex(argument_id)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuicommandmap\"\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":"59727c81cfc29205c9b8a45cacda8cbbde66abf90d76f7cb41b819164f635da6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AddBinding-4","title":"yuiCommandMap.AddBinding","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Add binding.\nyuiCommandMap instance = yuiCommandMap()\nyuiCommandBinding argument_binding = yuiCommandBinding(\"id\", \"scope Root Id\", \"chord\", \"command\", \"example\")\nbool result = instance.AddBinding(argument_binding)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuicommandmap\"\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":"7203bb71696e9f508e44597c1b52e4c4fee1a599387e54b081b58e7d6e738545","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-SetEnabled-5","title":"yuiCommandMap.SetEnabled","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Set enabled.\nyuiCommandMap instance = yuiCommandMap()\ntext argument_bindingId = \"argument binding Id\"\nbool argument_enabled = true\nbool result = instance.SetEnabled(argument_bindingId, argument_enabled)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuicommandmap\"\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":"b4d9c85810dd89d913e5dd37f3547aff3df3c2f56fd3c5564cb654fd2a9368ab","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Resolve-6","title":"yuiCommandMap.Resolve","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Resolve.\nyuiCommandMap instance = yuiCommandMap()\nyuiTree argument_tree = yuiTree(\"id\")\ntext argument_focusedNodeId = \"argument focused Node Id\"\ntext argument_chord = \"argument chord\"\nyuiCommandResolution result = instance.Resolve(argument_tree, argument_focusedNodeId, argument_chord)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuicommandmap\"\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":"76b34d87fdf7c1f0c965ed3d1cbdb69b4cff699e5bacb491a5adfc23b0c1de28","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-RenderCommandMapReport-7","title":"yuiCommandMap.RenderCommandMapReport","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Render command map report.\nyuiCommandMap instance = yuiCommandMap()\ntext result = instance.RenderCommandMapReport()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuicommandmap\"\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":"e890661355458babf1b11b809c27e37246d15f987fdc5d56dce265213315967a","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["bindings","diagnostic","yuiCommandMap","BindingIndex","AddBinding","SetEnabled","Resolve","RenderCommandMapReport"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiCommandMap","json":"https://demonhunterlabs.com/reference/items/ui--yuiCommandMap.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiCommandMap.md"}
