{"id":"ui--yuiEventState","name":"yuiEventState","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiEventState","description":"A yui event state record carrying hover, pressed, focused, selected, active, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"hover","kind":"field","type":"bool","description":"Stores hover as bool.","signature":"bool hover","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"pressed","kind":"field","type":"bool","description":"Stores pressed as bool.","signature":"bool pressed","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"focused","kind":"field","type":"bool","description":"Stores focused as bool.","signature":"bool focused","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"selected","kind":"field","type":"bool","description":"Stores selected as bool.","signature":"bool selected","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"active","kind":"field","type":"bool","description":"Stores active as bool.","signature":"bool active","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"action","kind":"field","type":"text","description":"Stores action as text.","signature":"text action","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiEventState","kind":"constructor","parameters":[{"name":"hover","type":"bool","description":"Hover."},{"name":"pressed","type":"bool","description":"Pressed."},{"name":"focused","type":"bool","description":"Focused."},{"name":"selected","type":"bool","description":"Selected."},{"name":"active","type":"bool","description":"Active."},{"name":"action","type":"text","description":"Action."}],"returns":"void","signature":"yuiEventState(bool hover, bool pressed, bool focused, bool selected, bool active, text action)","description":"Yui event state.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","ui"],"exampleId":"method-Describe-7","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/ui.yh","line":118,"sha256":"2745dad504552ce545dea2a953613be247f8b49f1b6712811e0a370cfa9e8575"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use yuiEventState","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\nyuiEventState sample = yuiEventState(true, true, true, true, true, \"action\")\nConsole.Log(Text.From(sample.hover))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuieventstate\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"e12b93611df2b7851bf4e84d9edd5e0594ac1525773a17af5e23fd63c27e96a6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-7","title":"yuiEventState.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Describe.\nyuiEventState instance = yuiEventState(true, true, true, true, true, \"action\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuieventstate\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"8a0cfa5645138506ef2e7258a33e53e22ec4d36617cb2abdf14e9d7a26df2345","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["hover","pressed","focused","selected","active","action","yuiEventState","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiEventState","json":"https://demonhunterlabs.com/reference/items/ui--yuiEventState.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiEventState.md"}
