frontend.yui · thing ·

yuiAuthoredApplicationLayoutPlan

A yui authored application layout plan record carrying x, y, width, height, applicationShell, and related state.

cpufrontendfrontend.yuimethodsource-examplethingyehoyui

Turn YUI models into a working frontend and its rendering/input adapters.

external thing yuiAuthoredApplicationLayoutPlan

Status: source-declared

Fields and methods (20)
int x
Stores x as int.
int y
Stores y as int.
int width
Stores width as int.
int height
Stores height as int.
bool applicationShell
Stores application shell as bool.
int cardX
Stores card x as int.
int cardY
Stores card y as int.
int cardWidth
Stores card width as int.
int cardHeight
Stores card height as int.
int headerHeight
Stores header height as int.
int bottomPad
Stores bottom pad as int.
yuiLayoutRect contentRect
Stores content rect as yuiLayoutRect.
text rootId
Stores root id as text.
list of yuiLayoutItem items
Stores items as list of yuiLayoutItem.
list of yuiMeasuredLayout measured
Stores measured as list of yuiMeasuredLayout.
list of yuiArrangedLayout placements
Stores placements as list of yuiArrangedLayout.
text diagnostic
Stores diagnostic as text.
yuiAuthoredApplicationLayoutPlan(int x, int y, int width, int height, bool applicationShell, int cardX, int cardY, int cardWidth, int cardHeight, int headerHeight, int bottomPad, yuiLayoutRect contentRect, text rootId, list of yuiLayoutItem items, list of yuiMeasuredLayout measured, list of yuiArrangedLayout placements, text diagnostic)
Yui authored application layout plan.
PlacementIndex(text nodeId) returns int
Placement index. Complete example
RenderReport() returns text
Render report. Complete example

Use yuiAuthoredApplicationLayoutPlan

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using frontend.yui

// Turn YUI models into a working frontend and its rendering/input adapters.
yuiAuthoredApplicationLayoutPlan sample = yuiAuthoredApplicationLayoutPlan(1, 1, 1, 1, true, 1, 1, 1, 1, 1, 1, yuiLayoutRect(1, 1, 1, 1), "root Id", [], [], [], "diagnostic")
Console.Log(Text.From(sample.x))
project.mech
manifestVersion = "2"
package = "api.example.frontend_yui__yuiauthoredapplicationlayoutplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "frontend.yui"
version = "0.2.0"
path = "../../../yeho/packages/frontend/yui"

[[dependencies]]
package = "graphics.canvas"
version = "0.1.0"
path = "../../../yeho/packages/graphics/canvas"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.image.processing"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image/processing"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "input.text"
version = "0.1.0"
path = "../../../yeho/packages/input/text"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

yuiAuthoredApplicationLayoutPlan.PlacementIndex

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using frontend.yui

// Placement index.
yuiAuthoredApplicationLayoutPlan instance = yuiAuthoredApplicationLayoutPlan(1, 1, 1, 1, true, 1, 1, 1, 1, 1, 1, yuiLayoutRect(1, 1, 1, 1), "root Id", [], [], [], "diagnostic")
text argument_nodeId = "argument node Id"
int result = instance.PlacementIndex(argument_nodeId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.frontend_yui__yuiauthoredapplicationlayoutplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "frontend.yui"
version = "0.2.0"
path = "../../../yeho/packages/frontend/yui"

[[dependencies]]
package = "graphics.canvas"
version = "0.1.0"
path = "../../../yeho/packages/graphics/canvas"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.image.processing"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image/processing"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "input.text"
version = "0.1.0"
path = "../../../yeho/packages/input/text"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

yuiAuthoredApplicationLayoutPlan.RenderReport

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using frontend.yui

// Render report.
yuiAuthoredApplicationLayoutPlan instance = yuiAuthoredApplicationLayoutPlan(1, 1, 1, 1, true, 1, 1, 1, 1, 1, 1, yuiLayoutRect(1, 1, 1, 1), "root Id", [], [], [], "diagnostic")
text result = instance.RenderReport()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.frontend_yui__yuiauthoredapplicationlayoutplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "frontend.yui"
version = "0.2.0"
path = "../../../yeho/packages/frontend/yui"

[[dependencies]]
package = "graphics.canvas"
version = "0.1.0"
path = "../../../yeho/packages/graphics/canvas"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.image.processing"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image/processing"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "input.text"
version = "0.1.0"
path = "../../../yeho/packages/input/text"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/frontend/yui/authoring-application_layout.yh:6