{"id":"ui--yuiIconResource","name":"yuiIconResource","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiIconResource","description":"A yui icon resource record carrying semanticName, sourceUri, format, theme, direction, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"semanticName","kind":"field","type":"text","description":"Stores semantic name as text.","signature":"text semanticName","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"sourceUri","kind":"field","type":"text","description":"Stores source uri as text.","signature":"text sourceUri","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"format","kind":"field","type":"text","description":"Stores format as text.","signature":"text format","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"theme","kind":"field","type":"text","description":"Stores theme as text.","signature":"text theme","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"direction","kind":"field","type":"text","description":"Stores direction as text.","signature":"text direction","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"compactSize","kind":"field","type":"int","description":"Stores compact size as int.","signature":"int compactSize","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"comfortableSize","kind":"field","type":"int","description":"Stores comfortable size as int.","signature":"int comfortableSize","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"opticalOffsetX","kind":"field","type":"int","description":"Stores optical offset x as int.","signature":"int opticalOffsetX","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"opticalOffsetY","kind":"field","type":"int","description":"Stores optical offset y as int.","signature":"int opticalOffsetY","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"tintRole","kind":"field","type":"text","description":"Stores tint role as text.","signature":"text tintRole","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"mirrorInRtl","kind":"field","type":"bool","description":"Stores mirror in rtl as bool.","signature":"bool mirrorInRtl","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":"yuiIconResource","kind":"constructor","parameters":[{"name":"semanticName","type":"text","description":"Semantic name."},{"name":"sourceUri","type":"text","description":"Source uri."},{"name":"format","type":"text","description":"Format."},{"name":"theme","type":"text","description":"Theme."},{"name":"direction","type":"text","description":"Direction."},{"name":"compactSize","type":"int","description":"Compact size."},{"name":"comfortableSize","type":"int","description":"Comfortable size."},{"name":"tintRole","type":"text","description":"Tint role."},{"name":"mirrorInRtl","type":"bool","description":"Mirror in rtl."},{"name":"source","type":"text","description":"Source."}],"returns":"void","signature":"yuiIconResource(text semanticName, text sourceUri, text format, text theme, text direction, int compactSize, int comfortableSize, text tintRole, bool mirrorInRtl, text source)","description":"Yui icon resource.","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-13","updated":"2026-09-09"},{"name":"CacheIdentity","kind":"method","parameters":[{"name":"density","type":"text","description":"Density."},{"name":"scalePercent","type":"int","description":"Scale percent."}],"returns":"text","signature":"CacheIdentity(text density, int scalePercent) returns text","description":"Cache identity.","tags":["thing","method","ui"],"exampleId":"method-CacheIdentity-14","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","ui"],"exampleId":"method-Describe-15","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/media-definitions.yh","line":3,"sha256":"e03625225aa2fa379344a28589cde5e27bcf6e0c346fdad36e2d59ac53f16645"},"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 yuiIconResource","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.\nyuiIconResource sample = yuiIconResource(\"semantic Name\", \"source Uri\", \"png\", \"theme\", \"direction\", 1, 1, \"tint Role\", true, \"example\")\nConsole.Log(Text.From(sample.semanticName))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiiconresource\"\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":"f8762a08621dabb60814cd8cbaffcb5fe9b7e7de2ac6e676cc40341e58f89bd0","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidationIssue-13","title":"yuiIconResource.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.\nyuiIconResource instance = yuiIconResource(\"semantic Name\", \"source Uri\", \"png\", \"theme\", \"direction\", 1, 1, \"tint Role\", true, \"example\")\ntext result = instance.ValidationIssue()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiiconresource\"\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":"362cbe2b419c7fc759c5a231236a5aa44a97e3beecd232e3f3670ca10ae3048e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-CacheIdentity-14","title":"yuiIconResource.CacheIdentity","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Cache identity.\nyuiIconResource instance = yuiIconResource(\"semantic Name\", \"source Uri\", \"png\", \"theme\", \"direction\", 1, 1, \"tint Role\", true, \"example\")\ntext argument_density = \"argument density\"\nint argument_scalePercent = 1\ntext result = instance.CacheIdentity(argument_density, argument_scalePercent)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiiconresource\"\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":"4f109e642a239140befac5e72ce83b344adb6544fad2c64ffb4f58200dfa182e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-15","title":"yuiIconResource.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Describe.\nyuiIconResource instance = yuiIconResource(\"semantic Name\", \"source Uri\", \"png\", \"theme\", \"direction\", 1, 1, \"tint Role\", true, \"example\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiiconresource\"\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":"4f62faf5ef34e9ce51fe5e2cf843c01f8bb6de05849b06292a9b03ca6cd2621f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["semanticName","sourceUri","format","theme","direction","compactSize","comfortableSize","opticalOffsetX","opticalOffsetY","tintRole","mirrorInRtl","source","yuiIconResource","ValidationIssue","CacheIdentity","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiIconResource","json":"https://demonhunterlabs.com/reference/items/ui--yuiIconResource.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiIconResource.md"}
