{"id":"ui--yuiTextLayoutResult","name":"yuiTextLayoutResult","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiTextLayoutResult","description":"A yui text layout result record carrying lines, width, height, scalePercent, clipped, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"lines","kind":"field","type":"list of yuiTextLine","description":"Stores lines as list of yuiTextLine.","signature":"list of yuiTextLine lines","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":"scalePercent","kind":"field","type":"int","description":"Stores scale percent as int.","signature":"int scalePercent","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"clipped","kind":"field","type":"bool","description":"Stores clipped as bool.","signature":"bool clipped","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"ellipsized","kind":"field","type":"bool","description":"Stores ellipsized as bool.","signature":"bool ellipsized","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"overflow","kind":"field","type":"text","description":"Stores overflow as text.","signature":"text overflow","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"diagnostic","kind":"field","type":"text","description":"Stores diagnostic as text.","signature":"text diagnostic","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiTextLayoutResult","kind":"constructor","parameters":[{"name":"scalePercent","type":"int","description":"Scale percent."},{"name":"overflow","type":"text","description":"Overflow."}],"returns":"void","signature":"yuiTextLayoutResult(int scalePercent, text overflow)","description":"Yui text layout result.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"RenderReport","kind":"method","parameters":[],"returns":"text","signature":"RenderReport() returns text","description":"Render report.","tags":["thing","method","ui"],"exampleId":"method-RenderReport-9","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/text-definitions.yh","line":138,"sha256":"e1caaa89623be9b30f2bb9a81c77a4babed53f9f452127d047300ef2f5fd3d1c"},"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 yuiTextLayoutResult","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.\nyuiTextLayoutResult sample = yuiTextLayoutResult(1, \"overflow\")\nConsole.Log(Text.From(sample.width))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuitextlayoutresult\"\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":"d71f10e23044ef3407e9465f847003bb09e06d51cd092fe1a0820fe47d886dff","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-RenderReport-9","title":"yuiTextLayoutResult.RenderReport","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Render report.\nyuiTextLayoutResult instance = yuiTextLayoutResult(1, \"overflow\")\ntext result = instance.RenderReport()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuitextlayoutresult\"\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":"737c023390eeb46aec0db88a7a92369f5a0f9f9d712428a5c6f3d729eb64e7dc","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["lines","width","height","scalePercent","clipped","ellipsized","overflow","diagnostic","yuiTextLayoutResult","RenderReport"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiTextLayoutResult","json":"https://demonhunterlabs.com/reference/items/ui--yuiTextLayoutResult.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiTextLayoutResult.md"}
