{"id":"ui--CreateYuiPaintPrimitive","name":"CreateYuiPaintPrimitive","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiPaintPrimitive(text kind, text layer, int x, int y, int width, int height, text fill, text stroke, int alpha, text clip, text textRun, text icon) returns yuiPaintPrimitive","description":"Create yui paint primitive from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"kind","type":"text","description":"Supply kind as text."},{"name":"layer","type":"text","description":"Supply layer as text."},{"name":"x","type":"int","description":"Supply x as int."},{"name":"y","type":"int","description":"Supply y as int."},{"name":"width","type":"int","description":"Supply width as int."},{"name":"height","type":"int","description":"Supply height as int."},{"name":"fill","type":"text","description":"Supply fill as text."},{"name":"stroke","type":"text","description":"Supply stroke as text."},{"name":"alpha","type":"int","description":"Supply alpha as int."},{"name":"clip","type":"text","description":"Supply clip as text."},{"name":"textRun","type":"text","description":"Supply text run as text."},{"name":"icon","type":"text","description":"Supply icon as text."}],"returns":"yuiPaintPrimitive","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/ui.yh","line":860,"sha256":"2745dad504552ce545dea2a953613be247f8b49f1b6712811e0a370cfa9e8575"},"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 CreateYuiPaintPrimitive","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 kind = \"kind\"\ntext layer = \"layer\"\nint x = 1\nint y = 1\nint width = 1\nint height = 1\ntext fill = \"fill\"\ntext stroke = \"stroke\"\nint alpha = 1\ntext clip = \"clip\"\ntext textRun = \"text Run\"\ntext icon = \"icon\"\nyuiPaintPrimitive result = CreateYuiPaintPrimitive(kind, layer, x, y, width, height, fill, stroke, alpha, clip, textRun, icon)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuipaintprimitive\"\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":"844dfa8fe1be6a011ffbb8dd6a78377f579da5066c635fe921cb0838f7de322a","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiPaintPrimitive","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiPaintPrimitive.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiPaintPrimitive.md"}
