# yuiAuthoredApplicationLayoutPlan

A yui authored application layout plan record carrying x, y, width, height, applicationShell, and related state.

Last updated: 2026-09-09

Package: frontend.yui | Status: source-declared

Tags: cpu, frontend, frontend.yui, method, source-example, thing, yeho, yui

Turn YUI models into a working frontend and its rendering/input adapters.

```yh
external thing yuiAuthoredApplicationLayoutPlan
```

- 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.
- RenderReport() returns text: Render report.

## Use yuiAuthoredApplicationLayoutPlan

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
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))

```

Save this beside start.yh as project.mech:

```toml
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"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/frontend.yui--yuiAuthoredApplicationLayoutPlan/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredApplicationLayoutPlan.PlacementIndex

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
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))

```

Save this beside start.yh as project.mech:

```toml
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"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/frontend.yui--yuiAuthoredApplicationLayoutPlan/method-PlacementIndex-18 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredApplicationLayoutPlan.RenderReport

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
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))

```

Save this beside start.yh as project.mech:

```toml
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"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/frontend.yui--yuiAuthoredApplicationLayoutPlan/method-RenderReport-19 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/frontend/yui/authoring-application_layout.yh

AI training permission: https://demonhunterlabs.com/ai-use
