# yuiEditableTextFieldLayout

A yui editable text field layout record carrying schema, schemaVersion, measurementKind, sourceValue, sourceCaret, 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 yuiEditableTextFieldLayout
```

- text schema: Stores schema as text.
- int schemaVersion: Stores schema version as int.
- text measurementKind: Stores measurement kind as text.
- text sourceValue: Stores source value as text.
- int sourceCaret: Stores source caret as int.
- int sourceSelectionAnchor: Stores source selection anchor as int.
- int sourceSelectionFocus: Stores source selection focus as int.
- bool sourceFocused: Stores source focused as bool.
- bool sourceComposing: Stores source composing as bool.
- int sourceCompositionStart: Stores source composition start as int.
- int sourceCompositionEnd: Stores source composition end as int.
- text sourceCompositionValue: Stores source composition value as text.
- int x: Stores x as int.
- int y: Stores y as int.
- int width: Stores width as int.
- int height: Stores height as int.
- int textX: Stores text x as int.
- int textY: Stores text y as int.
- yuiEditableTextFieldView view: Stores view as yuiEditableTextFieldView.
- list of yuiEditableTextBoundaryGeometry prefixGeometry: Stores prefix geometry as list of yuiEditableTextBoundaryGeometry.
- int visibleStartAdvance: Stores visible start advance as int.
- text visibleValue: Stores visible value as text.
- bool selectionVisible: Stores selection visible as bool.
- int selectionX: Stores selection x as int.
- int selectionWidth: Stores selection width as int.
- bool caretVisible: Stores caret visible as bool.
- int caretX: Stores caret x as int.
- bool compositionVisible: Stores composition visible as bool.
- int compositionX: Stores composition x as int.
- int compositionWidth: Stores composition width as int.
- int compositionCoverWidth: Stores composition cover width as int.
- int compositionCaretX: Stores composition caret x as int.
- int activeBoundaryCount: Stores active boundary count as int.
- int prefixMeasurementCount: Stores prefix measurement count as int.
- int compositionMeasurementCount: Stores composition measurement count as int.
- int measurementCount: Stores measurement count as int.
- text diagnostic: Stores diagnostic as text.
- yuiEditableTextFieldLayout(yuiTextEditState state, int x, int y, int width): Yui editable text field layout.
- PrefixAdvance(int boundary) returns int: Prefix advance.
- BoundaryX(int boundary) returns int: Boundary x.
- ContainsPointer(int pointerX, int pointerY) returns bool: Contains pointer.
- ValidFor(yuiTextEditState state, int x, int y, int width) returns bool: Valid for.
- Describe() returns text: Describe.

## Use yuiEditableTextFieldLayout

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.
yuiEditableTextFieldLayout sample = yuiEditableTextFieldLayout(yuiTextEditState("value", yuiGraphemeMap(1, "example"), 1, true, "clipboard Hook"), 1, 1, 1)
Console.Log(Text.From(sample.schema))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.frontend_yui__yuieditabletextfieldlayout"
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--yuiEditableTextFieldLayout/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiEditableTextFieldLayout.PrefixAdvance

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using frontend.yui

// Prefix advance.
yuiEditableTextFieldLayout instance = yuiEditableTextFieldLayout(yuiTextEditState("value", yuiGraphemeMap(1, "example"), 1, true, "clipboard Hook"), 1, 1, 1)
int argument_boundary = 1
int result = instance.PrefixAdvance(argument_boundary)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.frontend_yui__yuieditabletextfieldlayout"
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--yuiEditableTextFieldLayout/method-PrefixAdvance-38 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiEditableTextFieldLayout.BoundaryX

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using frontend.yui

// Boundary x.
yuiEditableTextFieldLayout instance = yuiEditableTextFieldLayout(yuiTextEditState("value", yuiGraphemeMap(1, "example"), 1, true, "clipboard Hook"), 1, 1, 1)
int argument_boundary = 1
int result = instance.BoundaryX(argument_boundary)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.frontend_yui__yuieditabletextfieldlayout"
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--yuiEditableTextFieldLayout/method-BoundaryX-39 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiEditableTextFieldLayout.ContainsPointer

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using frontend.yui

// Contains pointer.
yuiEditableTextFieldLayout instance = yuiEditableTextFieldLayout(yuiTextEditState("value", yuiGraphemeMap(1, "example"), 1, true, "clipboard Hook"), 1, 1, 1)
int argument_pointerX = 1
int argument_pointerY = 1
bool result = instance.ContainsPointer(argument_pointerX, argument_pointerY)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.frontend_yui__yuieditabletextfieldlayout"
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--yuiEditableTextFieldLayout/method-ContainsPointer-40 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiEditableTextFieldLayout.ValidFor

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using frontend.yui

// Valid for.
yuiEditableTextFieldLayout instance = yuiEditableTextFieldLayout(yuiTextEditState("value", yuiGraphemeMap(1, "example"), 1, true, "clipboard Hook"), 1, 1, 1)
yuiTextEditState argument_state = yuiTextEditState("value", yuiGraphemeMap(1, "example"), 1, true, "clipboard Hook")
int argument_x = 1
int argument_y = 1
int argument_width = 1
bool result = instance.ValidFor(argument_state, argument_x, argument_y, argument_width)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.frontend_yui__yuieditabletextfieldlayout"
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--yuiEditableTextFieldLayout/method-ValidFor-41 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiEditableTextFieldLayout.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using frontend.yui

// Describe.
yuiEditableTextFieldLayout instance = yuiEditableTextFieldLayout(yuiTextEditState("value", yuiGraphemeMap(1, "example"), 1, true, "clipboard Hook"), 1, 1, 1)
text result = instance.Describe()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.frontend_yui__yuieditabletextfieldlayout"
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--yuiEditableTextFieldLayout/method-Describe-42 --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/input-render-editable_text_field.yh

AI training permission: https://demonhunterlabs.com/ai-use
