ui · thing ·
yuiCoreControlSpec
A yui core control spec record carrying kind, authoringTag, metadata, interactive, focusable, and related state.
Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.
external thing yuiCoreControlSpecStatus: source-declared
Fields and methods (23)
text kind- Stores kind as text.
text authoringTag- Stores authoring tag as text.
yuiComponentMetadata metadata- Stores metadata as yuiComponentMetadata.
bool interactive- Stores interactive as bool.
bool focusable- Stores focusable as bool.
text keyboardContract- Stores keyboard contract as text.
text pointerContract- Stores pointer contract as text.
text accessibilityRole- Stores accessibility role as text.
text accessibilityActions- Stores accessibility actions as text.
text valueModel- Stores value model as text.
text layoutBehavior- Stores layout behavior as text.
text slots- Stores slots as text.
text applicableStates- Stores applicable states as text.
list of yuiCoreControlStateStyle stateStyles- Stores state styles as list of yuiCoreControlStateStyle.
text source- Stores source as text.
yuiCoreControlSpec(text kind, text authoringTag, yuiComponentMetadata metadata, bool interactive, bool focusable, text keyboardContract, text pointerContract, text accessibilityRole, text accessibilityActions, text valueModel, text layoutBehavior, text slots, text applicableStates, text source)- Yui core control spec.
StateIndex(text state) returns int- State index. Complete example
SupportsState(text state) returns bool- Supports state. Complete example
AddStateStyle(yuiCoreControlStateStyle style) returns bool- Add state style. Complete example
ResolveState(text state) returns yuiCoreControlStateStyle- Resolve state. Complete example
ValidationIssue() returns text- Validation issue. Complete example
ValidateTheme(yuiThemeDefinition theme) returns text- Validate theme. Complete example
RenderReport() returns text- Render report. Complete example
Use yuiCoreControlSpec
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.
yuiCoreControlSpec sample = yuiCoreControlSpec("kind", "authoring Tag", yuiComponentMetadata("Nova", "role", "property Schema", "child Rule", "defaults", "example", "design Label", true), true, true, "keyboard Contract", "pointer Contract", "accessibility Role", "accessibility Actions", "value Model", "layout Behavior", "slots", "applicable States", "example")
Console.Log(Text.From(sample.kind))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuicorecontrolspec"
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"
yuiCoreControlSpec.StateIndex
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
// State index.
yuiCoreControlSpec instance = yuiCoreControlSpec("kind", "authoring Tag", yuiComponentMetadata("Nova", "role", "property Schema", "child Rule", "defaults", "example", "design Label", true), true, true, "keyboard Contract", "pointer Contract", "accessibility Role", "accessibility Actions", "value Model", "layout Behavior", "slots", "applicable States", "example")
text argument_state = "argument state"
int result = instance.StateIndex(argument_state)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuicorecontrolspec"
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"
yuiCoreControlSpec.SupportsState
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
// Supports state.
yuiCoreControlSpec instance = yuiCoreControlSpec("kind", "authoring Tag", yuiComponentMetadata("Nova", "role", "property Schema", "child Rule", "defaults", "example", "design Label", true), true, true, "keyboard Contract", "pointer Contract", "accessibility Role", "accessibility Actions", "value Model", "layout Behavior", "slots", "applicable States", "example")
text argument_state = "argument state"
bool result = instance.SupportsState(argument_state)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuicorecontrolspec"
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"
yuiCoreControlSpec.AddStateStyle
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 state style.
yuiCoreControlSpec instance = yuiCoreControlSpec("kind", "authoring Tag", yuiComponentMetadata("Nova", "role", "property Schema", "child Rule", "defaults", "example", "design Label", true), true, true, "keyboard Contract", "pointer Contract", "accessibility Role", "accessibility Actions", "value Model", "layout Behavior", "slots", "applicable States", "example")
yuiCoreControlStateStyle argument_style = yuiCoreControlStateStyle("state", "fill Role", "border Role", "content Role", "icon Role", "non Color Cue", "motion Role", 1)
bool result = instance.AddStateStyle(argument_style)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuicorecontrolspec"
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"
yuiCoreControlSpec.ResolveState
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
// Resolve state.
yuiCoreControlSpec instance = yuiCoreControlSpec("kind", "authoring Tag", yuiComponentMetadata("Nova", "role", "property Schema", "child Rule", "defaults", "example", "design Label", true), true, true, "keyboard Contract", "pointer Contract", "accessibility Role", "accessibility Actions", "value Model", "layout Behavior", "slots", "applicable States", "example")
text argument_state = "argument state"
yuiCoreControlStateStyle result = instance.ResolveState(argument_state)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.ui__yuicorecontrolspec"
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"
yuiCoreControlSpec.ValidationIssue
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
// Validation issue.
yuiCoreControlSpec instance = yuiCoreControlSpec("kind", "authoring Tag", yuiComponentMetadata("Nova", "role", "property Schema", "child Rule", "defaults", "example", "design Label", true), true, true, "keyboard Contract", "pointer Contract", "accessibility Role", "accessibility Actions", "value Model", "layout Behavior", "slots", "applicable States", "example")
text result = instance.ValidationIssue()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuicorecontrolspec"
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"
yuiCoreControlSpec.ValidateTheme
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
// Validate theme.
yuiCoreControlSpec instance = yuiCoreControlSpec("kind", "authoring Tag", yuiComponentMetadata("Nova", "role", "property Schema", "child Rule", "defaults", "example", "design Label", true), true, true, "keyboard Contract", "pointer Contract", "accessibility Role", "accessibility Actions", "value Model", "layout Behavior", "slots", "applicable States", "example")
yuiThemeDefinition argument_theme = yuiThemeDefinition("id", "display Name", "mode", "example")
text result = instance.ValidateTheme(argument_theme)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuicorecontrolspec"
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"
yuiCoreControlSpec.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 ui
// Render report.
yuiCoreControlSpec instance = yuiCoreControlSpec("kind", "authoring Tag", yuiComponentMetadata("Nova", "role", "property Schema", "child Rule", "defaults", "example", "design Label", true), true, true, "keyboard Contract", "pointer Contract", "accessibility Role", "accessibility Actions", "value Model", "layout Behavior", "slots", "applicable States", "example")
text result = instance.RenderReport()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuicorecontrolspec"
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/controls-00-definitions.yh:52