{"id":"ui--uiSurfaceSize","name":"uiSurfaceSize","owner":"yeho","package":"ui","kind":"thing","signature":"external thing uiSurfaceSize","description":"A ui surface size record carrying width, height, scalePercent.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"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":"uiSurfaceSize","kind":"constructor","parameters":[{"name":"width","type":"int","description":"Width."},{"name":"height","type":"int","description":"Height."},{"name":"scalePercent","type":"int","description":"Scale percent."}],"returns":"void","signature":"uiSurfaceSize(int width, int height, int scalePercent)","description":"Ui surface size.","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-4","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/surface-surface.yh","line":29,"sha256":"7bd2b644c8330e50977ce280ec0003bba995d80ea276cb1d982acc5996ab2f13"},"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 uiSurfaceSize","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.\nuiSurfaceSize sample = uiSurfaceSize(1, 1, 1)\nConsole.Log(Text.From(sample.width))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__uisurfacesize\"\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":"8da52b915bea60ecb782fc4ecc50e233df09c6a873f5f080981980bfe79a34ef","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-4","title":"uiSurfaceSize.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.\nuiSurfaceSize instance = uiSurfaceSize(1, 1, 1)\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__uisurfacesize\"\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":"f8a18d9a0607cfba225c6572c586c11e0c61b15b8b246a000d0760ec54851c20","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["width","height","scalePercent","uiSurfaceSize","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--uiSurfaceSize","json":"https://demonhunterlabs.com/reference/items/ui--uiSurfaceSize.json","markdown":"https://demonhunterlabs.com/reference/text/ui--uiSurfaceSize.md"}
