{"id":"ui--CreateYuiCoreControlStateStyle","name":"CreateYuiCoreControlStateStyle","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiCoreControlStateStyle(text state, text fillRole, text borderRole, text contentRole, text iconRole, text nonColorCue, text motionRole, int opacityPercent) returns yuiCoreControlStateStyle","description":"Create yui core control state style from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"state","type":"text","description":"Supply state as text."},{"name":"fillRole","type":"text","description":"Supply fill role as text."},{"name":"borderRole","type":"text","description":"Supply border role as text."},{"name":"contentRole","type":"text","description":"Supply content role as text."},{"name":"iconRole","type":"text","description":"Supply icon role as text."},{"name":"nonColorCue","type":"text","description":"Supply non color cue as text."},{"name":"motionRole","type":"text","description":"Supply motion role as text."},{"name":"opacityPercent","type":"int","description":"Supply opacity percent as int."}],"returns":"yuiCoreControlStateStyle","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/controls-00-definitions.yh","line":238,"sha256":"fa1e7bb5a6ce717390a9aa5dfab81a5a651d0ff4db12cd5c3b79c09ec3d26b60"},"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 CreateYuiCoreControlStateStyle","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 state = \"state\"\ntext fillRole = \"fill Role\"\ntext borderRole = \"border Role\"\ntext contentRole = \"content Role\"\ntext iconRole = \"icon Role\"\ntext nonColorCue = \"non Color Cue\"\ntext motionRole = \"motion Role\"\nint opacityPercent = 1\nyuiCoreControlStateStyle result = CreateYuiCoreControlStateStyle(state, fillRole, borderRole, contentRole, iconRole, nonColorCue, motionRole, opacityPercent)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuicorecontrolstatestyle\"\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":"e6ab41af635d59de9a45279327a91c8d985a9f8d7104b0d065b4f02a0a3c358d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiCoreControlStateStyle","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiCoreControlStateStyle.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiCoreControlStateStyle.md"}
