{"id":"ui--CreateYuiIconResource","name":"CreateYuiIconResource","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiIconResource(text semanticName, text sourceUri, text format, text theme, text direction, int compactSize, int comfortableSize, text tintRole, bool mirrorInRtl, text source) returns yuiIconResource","description":"Create yui icon resource from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"semanticName","type":"text","description":"Supply semantic name as text."},{"name":"sourceUri","type":"text","description":"Supply source uri as text."},{"name":"format","type":"text","description":"Supply format as text."},{"name":"theme","type":"text","description":"Supply theme as text."},{"name":"direction","type":"text","description":"Supply direction as text."},{"name":"compactSize","type":"int","description":"Supply compact size as int."},{"name":"comfortableSize","type":"int","description":"Supply comfortable size as int."},{"name":"tintRole","type":"text","description":"Supply tint role as text."},{"name":"mirrorInRtl","type":"bool","description":"Supply mirror in rtl as bool."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"yuiIconResource","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/media-definitions.yh","line":225,"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 CreateYuiIconResource","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 semanticName = \"semantic Name\"\ntext sourceUri = \"source Uri\"\ntext format = \"png\"\ntext theme = \"theme\"\ntext direction = \"direction\"\nint compactSize = 1\nint comfortableSize = 1\ntext tintRole = \"tint Role\"\nbool mirrorInRtl = true\ntext source = \"example\"\nyuiIconResource result = CreateYuiIconResource(semanticName, sourceUri, format, theme, direction, compactSize, comfortableSize, tintRole, mirrorInRtl, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuiiconresource\"\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":"98be0e1b954391262caf2cadaef9ac118ca3bddaa1ce72694e332138ceda12e8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiIconResource","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiIconResource.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiIconResource.md"}
