{"id":"ui--yuiImagePresentation","name":"yuiImagePresentation","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiImagePresentation","description":"A yui image presentation record carrying image, fit, cropX, cropY, cropWidth, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"image","kind":"field","type":"yuiImageSource","description":"Stores image as yuiImageSource.","signature":"yuiImageSource image","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"fit","kind":"field","type":"text","description":"Stores fit as text.","signature":"text fit","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"cropX","kind":"field","type":"int","description":"Stores crop x as int.","signature":"int cropX","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"cropY","kind":"field","type":"int","description":"Stores crop y as int.","signature":"int cropY","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"cropWidth","kind":"field","type":"int","description":"Stores crop width as int.","signature":"int cropWidth","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"cropHeight","kind":"field","type":"int","description":"Stores crop height as int.","signature":"int cropHeight","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"scalePercent","kind":"field","type":"int","description":"Stores scale percent as int.","signature":"int scalePercent","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"tintRole","kind":"field","type":"text","description":"Stores tint role as text.","signature":"text tintRole","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"sliceLeft","kind":"field","type":"int","description":"Stores slice left as int.","signature":"int sliceLeft","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"sliceTop","kind":"field","type":"int","description":"Stores slice top as int.","signature":"int sliceTop","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"sliceRight","kind":"field","type":"int","description":"Stores slice right as int.","signature":"int sliceRight","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"sliceBottom","kind":"field","type":"int","description":"Stores slice bottom as int.","signature":"int sliceBottom","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"state","kind":"field","type":"text","description":"Stores state as text.","signature":"text state","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"placeholderIcon","kind":"field","type":"text","description":"Stores placeholder icon as text.","signature":"text placeholderIcon","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"errorText","kind":"field","type":"text","description":"Stores error text as text.","signature":"text errorText","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"source","kind":"field","type":"text","description":"Stores source as text.","signature":"text source","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiImagePresentation","kind":"constructor","parameters":[{"name":"image","type":"yuiImageSource","description":"Image."},{"name":"fit","type":"text","description":"Fit."},{"name":"scalePercent","type":"int","description":"Scale percent."},{"name":"tintRole","type":"text","description":"Tint role."},{"name":"state","type":"text","description":"State."},{"name":"placeholderIcon","type":"text","description":"Placeholder icon."},{"name":"source","type":"text","description":"Source."}],"returns":"void","signature":"yuiImagePresentation(yuiImageSource image, text fit, int scalePercent, text tintRole, text state, text placeholderIcon, text source)","description":"Yui image presentation.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"ValidationIssue","kind":"method","parameters":[],"returns":"text","signature":"ValidationIssue() returns text","description":"Validation issue.","tags":["thing","method","ui"],"exampleId":"method-ValidationIssue-17","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","ui"],"exampleId":"method-Describe-18","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/media-definitions.yh","line":141,"sha256":"e03625225aa2fa379344a28589cde5e27bcf6e0c346fdad36e2d59ac53f16645"},"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 yuiImagePresentation","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.\nyuiImagePresentation sample = yuiImagePresentation(yuiImageSource(\"Nova\", \"source Uri\", \"png\", \"color Space\", 1, 1, \"example\"), \"fit\", 1, \"tint Role\", \"state\", \"placeholder Icon\", \"example\")\nConsole.Log(Text.From(sample.fit))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiimagepresentation\"\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":"1d31c390df55b874a6fa6d898e23045c18b85173c483708feab6238ad78a12ad","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidationIssue-17","title":"yuiImagePresentation.ValidationIssue","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Validation issue.\nyuiImagePresentation instance = yuiImagePresentation(yuiImageSource(\"Nova\", \"source Uri\", \"png\", \"color Space\", 1, 1, \"example\"), \"fit\", 1, \"tint Role\", \"state\", \"placeholder Icon\", \"example\")\ntext result = instance.ValidationIssue()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiimagepresentation\"\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":"a83b749140c81a750893b665c01f63c5fe7694b91c9e6186b2f0d6265b6bd622","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-18","title":"yuiImagePresentation.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.\nyuiImagePresentation instance = yuiImagePresentation(yuiImageSource(\"Nova\", \"source Uri\", \"png\", \"color Space\", 1, 1, \"example\"), \"fit\", 1, \"tint Role\", \"state\", \"placeholder Icon\", \"example\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiimagepresentation\"\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":"2c3cc2c29f11eccf68407c53854e3fa22169d6a201504cd1de57e751e03960bf","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["image","fit","cropX","cropY","cropWidth","cropHeight","scalePercent","tintRole","sliceLeft","sliceTop","sliceRight","sliceBottom","state","placeholderIcon","errorText","source","yuiImagePresentation","ValidationIssue","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiImagePresentation","json":"https://demonhunterlabs.com/reference/items/ui--yuiImagePresentation.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiImagePresentation.md"}
