{"id":"ui--CreateYuiLayoutConstraints","name":"CreateYuiLayoutConstraints","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiLayoutConstraints(int minimumWidth, int minimumHeight, int maximumWidth, int maximumHeight, int scalePercent, text source) returns yuiLayoutConstraints","description":"Create yui layout constraints from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"minimumWidth","type":"int","description":"Supply minimum width as int."},{"name":"minimumHeight","type":"int","description":"Supply minimum height as int."},{"name":"maximumWidth","type":"int","description":"Supply maximum width as int."},{"name":"maximumHeight","type":"int","description":"Supply maximum height as int."},{"name":"scalePercent","type":"int","description":"Supply scale percent as int."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"yuiLayoutConstraints","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/layout-definitions.yh","line":227,"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 CreateYuiLayoutConstraints","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.\nint minimumWidth = 1\nint minimumHeight = 1\nint maximumWidth = 1\nint maximumHeight = 1\nint scalePercent = 1\ntext source = \"example\"\nyuiLayoutConstraints result = CreateYuiLayoutConstraints(minimumWidth, minimumHeight, maximumWidth, maximumHeight, scalePercent, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuilayoutconstraints\"\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":"fe292b1092d603022ebf9ecc37baf4d190830f8f9b30e0191e8e5280915e39ce","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiLayoutConstraints","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiLayoutConstraints.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiLayoutConstraints.md"}
