ui · thing ·
yuiInputState
A yui input state record carrying regions, pointerCaptureNodeId, pointerCaptureId, hoverNodeId, pressedNodeId, and related state.
Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.
external thing yuiInputStateStatus: source-declared
Fields and methods (17)
list of yuiInputRegion regions- Stores regions as list of yuiInputRegion.
text pointerCaptureNodeId- Stores pointer capture node id as text.
text pointerCaptureId- Stores pointer capture id as text.
text hoverNodeId- Stores hover node id as text.
text pressedNodeId- Stores pressed node id as text.
int pressX- Stores press x as int.
int pressY- Stores press y as int.
int dragThreshold- Stores drag threshold as int.
bool dragging- Stores dragging as bool.
text diagnostic- Stores diagnostic as text.
yuiInputState(int dragThreshold)- Yui input state.
AddRegion(yuiInputRegion region)- Add region. Complete example
Reconcile(yuiTree tree)- Reconcile. Complete example
CapturePointer(yuiTree tree, text nodeId, text pointerId) returns bool- Capture pointer. Complete example
ReleasePointer(text pointerId) returns bool- Release pointer. Complete example
RoutePointer(yuiTree tree, text eventKind, text pointerId, int x, int y, text cancelNode, text cancelPhase) returns yuiRoutedEventResult- Route pointer. Complete example
RenderInputStateReport() returns text- Render input state report. Complete example
Use yuiInputState
A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.
cpu · source-example · type checked
using ui
// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.
yuiInputState sample = yuiInputState(1)
Console.Log(Text.From(sample.pointerCaptureNodeId))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuiinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"
[[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 = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"
yuiInputState.AddRegion
A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.
cpu · method · source-example · type checked
using ui
// Add region.
yuiInputState instance = yuiInputState(1)
yuiInputRegion argument_region = yuiInputRegion("node Id", 1, 1, 1, 1, 1, true)
instance.AddRegion(argument_region)
Console.Log("AddRegion completed")
project.mech
manifestVersion = "2"
package = "api.example.ui__yuiinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"
[[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 = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"
yuiInputState.Reconcile
A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.
cpu · method · source-example · type checked
using ui
// Reconcile.
yuiInputState instance = yuiInputState(1)
yuiTree argument_tree = yuiTree("id")
instance.Reconcile(argument_tree)
Console.Log("Reconcile completed")
project.mech
manifestVersion = "2"
package = "api.example.ui__yuiinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"
[[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 = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"
yuiInputState.CapturePointer
A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.
cpu · method · source-example · type checked
using ui
// Capture pointer.
yuiInputState instance = yuiInputState(1)
yuiTree argument_tree = yuiTree("id")
text argument_nodeId = "argument node Id"
text argument_pointerId = "argument pointer Id"
bool result = instance.CapturePointer(argument_tree, argument_nodeId, argument_pointerId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuiinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"
[[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 = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"
yuiInputState.ReleasePointer
A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.
cpu · method · source-example · type checked
using ui
// Release pointer.
yuiInputState instance = yuiInputState(1)
text argument_pointerId = "argument pointer Id"
bool result = instance.ReleasePointer(argument_pointerId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuiinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"
[[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 = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"
yuiInputState.RoutePointer
A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.
cpu · method · source-example · type checked
using ui
// Route pointer.
yuiInputState instance = yuiInputState(1)
yuiTree argument_tree = yuiTree("id")
text argument_eventKind = "argument event Kind"
text argument_pointerId = "argument pointer Id"
int argument_x = 1
int argument_y = 1
text argument_cancelNode = "argument cancel Node"
text argument_cancelPhase = "argument cancel Phase"
yuiRoutedEventResult result = instance.RoutePointer(argument_tree, argument_eventKind, argument_pointerId, argument_x, argument_y, argument_cancelNode, argument_cancelPhase)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.ui__yuiinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"
[[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 = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"
yuiInputState.RenderInputStateReport
A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.
cpu · method · source-example · type checked
using ui
// Render input state report.
yuiInputState instance = yuiInputState(1)
text result = instance.RenderInputStateReport()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuiinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"
[[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 = "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/ui/interaction-routing.yh:322