{"id":"ui--yuiLayoutRect","name":"yuiLayoutRect","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiLayoutRect","description":"A yui layout rect record carrying x, y, width, height.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"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":"yuiLayoutRect","kind":"constructor","parameters":[{"name":"x","type":"int","description":"X."},{"name":"y","type":"int","description":"Y."},{"name":"width","type":"int","description":"Width."},{"name":"height","type":"int","description":"Height."}],"returns":"void","signature":"yuiLayoutRect(int x, int y, int width, int height)","description":"Yui layout rect.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"Right","kind":"method","parameters":[],"returns":"int","signature":"Right() returns int","description":"Right.","tags":["thing","method","ui"],"exampleId":"method-Right-5","updated":"2026-09-09"},{"name":"Bottom","kind":"method","parameters":[],"returns":"int","signature":"Bottom() returns int","description":"Bottom.","tags":["thing","method","ui"],"exampleId":"method-Bottom-6","updated":"2026-09-09"},{"name":"Valid","kind":"method","parameters":[],"returns":"bool","signature":"Valid() returns bool","description":"Valid.","tags":["thing","method","ui"],"exampleId":"method-Valid-7","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","ui"],"exampleId":"method-Describe-8","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/layout-definitions.yh","line":21,"sha256":"530806f770781200ee6832718f8332fc198d13c4d8400a3fc7cf651e5577823b"},"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 yuiLayoutRect","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.\nyuiLayoutRect sample = yuiLayoutRect(1, 1, 1, 1)\nConsole.Log(Text.From(sample.x))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilayoutrect\"\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":"e633ce694cdd37f2e72cbe6e6d936de19052dfafc3bfb53810fbad17edae5e6c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Right-5","title":"yuiLayoutRect.Right","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Right.\nyuiLayoutRect instance = yuiLayoutRect(1, 1, 1, 1)\nint result = instance.Right()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilayoutrect\"\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":"4d3d81ac4b550d2a56057d6121d67c1fe0a3e206a56dfb5b959da75e4b441e5e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Bottom-6","title":"yuiLayoutRect.Bottom","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Bottom.\nyuiLayoutRect instance = yuiLayoutRect(1, 1, 1, 1)\nint result = instance.Bottom()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilayoutrect\"\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":"10f04c0da9474e0dd944e2da01875d9d6facb8d4e276965a1fdbdc95e4db9a39","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Valid-7","title":"yuiLayoutRect.Valid","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Valid.\nyuiLayoutRect instance = yuiLayoutRect(1, 1, 1, 1)\nbool result = instance.Valid()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilayoutrect\"\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":"5a8079010de769a232f6be809bafdfaabfa6c4bd0e2ef825a5ffbfa39891c9d3","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-8","title":"yuiLayoutRect.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.\nyuiLayoutRect instance = yuiLayoutRect(1, 1, 1, 1)\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuilayoutrect\"\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":"56b75b02be2af290dd37d5e3f289f6aad3840f2edf2c6ead9da63f66d6102c80","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["x","y","width","height","yuiLayoutRect","Right","Bottom","Valid","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiLayoutRect","json":"https://demonhunterlabs.com/reference/items/ui--yuiLayoutRect.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiLayoutRect.md"}
