{"id":"ui--yuiPaintPrimitive","name":"yuiPaintPrimitive","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiPaintPrimitive","description":"A yui paint primitive record carrying kind, layer, x, y, width, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"kind","kind":"field","type":"text","description":"Stores kind as text.","signature":"text kind","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"layer","kind":"field","type":"text","description":"Stores layer as text.","signature":"text layer","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"x","kind":"field","type":"int","description":"Stores x as int.","signature":"int x","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"y","kind":"field","type":"int","description":"Stores y as int.","signature":"int y","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"width","kind":"field","type":"int","description":"Stores width as int.","signature":"int width","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"height","kind":"field","type":"int","description":"Stores height as int.","signature":"int height","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"fill","kind":"field","type":"text","description":"Stores fill as text.","signature":"text fill","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"stroke","kind":"field","type":"text","description":"Stores stroke as text.","signature":"text stroke","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"alpha","kind":"field","type":"int","description":"Stores alpha as int.","signature":"int alpha","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"clip","kind":"field","type":"text","description":"Stores clip as text.","signature":"text clip","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"textRun","kind":"field","type":"text","description":"Stores text run as text.","signature":"text textRun","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"icon","kind":"field","type":"text","description":"Stores icon as text.","signature":"text icon","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiPaintPrimitive","kind":"constructor","parameters":[{"name":"kind","type":"text","description":"Kind."},{"name":"layer","type":"text","description":"Layer."},{"name":"x","type":"int","description":"X."},{"name":"y","type":"int","description":"Y."},{"name":"width","type":"int","description":"Width."},{"name":"height","type":"int","description":"Height."},{"name":"fill","type":"text","description":"Fill."},{"name":"stroke","type":"text","description":"Stroke."},{"name":"alpha","type":"int","description":"Alpha."},{"name":"clip","type":"text","description":"Clip."},{"name":"textRun","type":"text","description":"Text run."},{"name":"icon","type":"text","description":"Icon."}],"returns":"void","signature":"yuiPaintPrimitive(text kind, text layer, int x, int y, int width, int height, text fill, text stroke, int alpha, text clip, text textRun, text icon)","description":"Yui paint primitive.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","ui"],"exampleId":"method-Describe-13","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/ui.yh","line":819,"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 yuiPaintPrimitive","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.\nyuiPaintPrimitive sample = yuiPaintPrimitive(\"kind\", \"layer\", 1, 1, 1, 1, \"fill\", \"stroke\", 1, \"clip\", \"text Run\", \"icon\")\nConsole.Log(Text.From(sample.kind))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuipaintprimitive\"\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":"303b55428008478707d61378f6e47e942deb3efc1ae2a9258b4b9c9a5b608f06","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-13","title":"yuiPaintPrimitive.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.\nyuiPaintPrimitive instance = yuiPaintPrimitive(\"kind\", \"layer\", 1, 1, 1, 1, \"fill\", \"stroke\", 1, \"clip\", \"text Run\", \"icon\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuipaintprimitive\"\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":"8f73a5042536666675bcdfca159d3bf45fb1426b814e823da3a7e6dfcd98ff6b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["kind","layer","x","y","width","height","fill","stroke","alpha","clip","textRun","icon","yuiPaintPrimitive","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiPaintPrimitive","json":"https://demonhunterlabs.com/reference/items/ui--yuiPaintPrimitive.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiPaintPrimitive.md"}
