frontend.yui · thing ·

yuiEditableTextFieldLayout

A yui editable text field layout record carrying schema, schemaVersion, measurementKind, sourceValue, sourceCaret, and related state.

cpufrontendfrontend.yuimethodsource-examplethingyehoyui

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

external thing yuiEditableTextFieldLayout

Status: source-declared

Fields and methods (43)
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. Complete example
BoundaryX(int boundary) returns int
Boundary x. Complete example
ContainsPointer(int pointerX, int pointerY) returns bool
Contains pointer. Complete example
ValidFor(yuiTextEditState state, int x, int y, int width) returns bool
Valid for. Complete example
Describe() returns text
Describe. Complete example

Use yuiEditableTextFieldLayout

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.
yuiEditableTextFieldLayout sample = yuiEditableTextFieldLayout(yuiTextEditState("value", yuiGraphemeMap(1, "example"), 1, true, "clipboard Hook"), 1, 1, 1)
Console.Log(Text.From(sample.schema))
project.mech
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"

yuiEditableTextFieldLayout.PrefixAdvance

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

// 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))
project.mech
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"

yuiEditableTextFieldLayout.BoundaryX

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

// 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))
project.mech
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"

yuiEditableTextFieldLayout.ContainsPointer

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

// 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))
project.mech
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"

yuiEditableTextFieldLayout.ValidFor

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

// 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))
project.mech
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"

yuiEditableTextFieldLayout.Describe

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

// 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))
project.mech
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"
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/input-render-editable_text_field.yh:112