{"id":"ui--yuiLayoutSpec","name":"yuiLayoutSpec","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiLayoutSpec","description":"A yui layout spec record carrying kind, minWidth, minHeight, preferredWidth, preferredHeight, 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":"minWidth","kind":"field","type":"int","description":"Stores min width as int.","signature":"int minWidth","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"minHeight","kind":"field","type":"int","description":"Stores min height as int.","signature":"int minHeight","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"preferredWidth","kind":"field","type":"int","description":"Stores preferred width as int.","signature":"int preferredWidth","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"preferredHeight","kind":"field","type":"int","description":"Stores preferred height as int.","signature":"int preferredHeight","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"maxWidth","kind":"field","type":"int","description":"Stores max width as int.","signature":"int maxWidth","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"maxHeight","kind":"field","type":"int","description":"Stores max height as int.","signature":"int maxHeight","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"fixedWidth","kind":"field","type":"int","description":"Stores fixed width as int.","signature":"int fixedWidth","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"fixedHeight","kind":"field","type":"int","description":"Stores fixed height as int.","signature":"int fixedHeight","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"scrollWidth","kind":"field","type":"int","description":"Stores scroll width as int.","signature":"int scrollWidth","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"scrollHeight","kind":"field","type":"int","description":"Stores scroll height as int.","signature":"int scrollHeight","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiLayoutSpec","kind":"constructor","parameters":[{"name":"kind","type":"text","description":"Kind."},{"name":"minWidth","type":"int","description":"Min width."},{"name":"minHeight","type":"int","description":"Min height."},{"name":"preferredWidth","type":"int","description":"Preferred width."},{"name":"preferredHeight","type":"int","description":"Preferred height."},{"name":"maxWidth","type":"int","description":"Max width."},{"name":"maxHeight","type":"int","description":"Max height."},{"name":"fixedWidth","type":"int","description":"Fixed width."},{"name":"fixedHeight","type":"int","description":"Fixed height."},{"name":"scrollWidth","type":"int","description":"Scroll width."},{"name":"scrollHeight","type":"int","description":"Scroll height."}],"returns":"void","signature":"yuiLayoutSpec(text kind, int minWidth, int minHeight, int preferredWidth, int preferredHeight, int maxWidth, int maxHeight, int fixedWidth, int fixedHeight, int scrollWidth, int scrollHeight)","description":"Yui layout spec.","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-12","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":80,"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 yuiLayoutSpec","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.\nyuiLayoutSpec sample = yuiLayoutSpec(\"kind\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)\nConsole.Log(Text.From(sample.kind))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilayoutspec\"\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":"28d0ccf52ee70ddc728e04231091ef9a85275dfffa72fb538cfa64d714e695f7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-12","title":"yuiLayoutSpec.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.\nyuiLayoutSpec instance = yuiLayoutSpec(\"kind\", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilayoutspec\"\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":"ea9999f67b0b18ffde50ccceffaab8cb9f08c931a2587b1850281b76f626e45e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["kind","minWidth","minHeight","preferredWidth","preferredHeight","maxWidth","maxHeight","fixedWidth","fixedHeight","scrollWidth","scrollHeight","yuiLayoutSpec","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiLayoutSpec","json":"https://demonhunterlabs.com/reference/items/ui--yuiLayoutSpec.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiLayoutSpec.md"}
