ui · thing ·
yuiRenderImagePresentation
A yui render image presentation record carrying fit, filter, outputColorSpace, samplingCacheIdentity, sourceX, and related state.
Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.
external thing yuiRenderImagePresentationStatus: source-declared
Fields and methods (28)
text fit- Stores fit as text.
text filter- Stores filter as text.
text outputColorSpace- Stores output color space as text.
text samplingCacheIdentity- Stores sampling cache identity as text.
int sourceX- Stores source x as int.
int sourceY- Stores source y as int.
int sourceWidth- Stores source width as int.
int sourceHeight- Stores source height as int.
int naturalWidth- Stores natural width as int.
int naturalHeight- Stores natural height as int.
int sliceLeft- Stores slice left as int.
int sliceTop- Stores slice top as int.
int sliceRight- Stores slice right as int.
int sliceBottom- Stores slice bottom as int.
int destinationSliceLeft- Stores destination slice left as int.
int destinationSliceTop- Stores destination slice top as int.
int destinationSliceRight- Stores destination slice right as int.
int destinationSliceBottom- Stores destination slice bottom as int.
yuiRenderImagePresentation(text fit, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int sliceLeft, int sliceTop, int sliceRight, int sliceBottom)- Yui render image presentation.
UsesWholeSource() returns bool- Uses whole source. Complete example
UsesLinearSampling() returns bool- Uses linear sampling. Complete example
HasExplicitSamplingPolicy() returns bool- Has explicit sampling policy. Complete example
UsesNineSlice() returns bool- Uses nine slice. Complete example
UsesExplicitSizing() returns bool- Uses explicit sizing. Complete example
ResolvedNaturalWidth(int sourceWidth) returns int- Resolved natural width. Complete example
ResolvedNaturalHeight(int sourceHeight) returns int- Resolved natural height. Complete example
ValidationIssue(int imageWidth, int imageHeight) returns text- Validation issue. Complete example
Describe() returns text- Describe. Complete example
Use yuiRenderImagePresentation
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.
yuiRenderImagePresentation sample = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
Console.Log(Text.From(sample.fit))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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"
yuiRenderImagePresentation.UsesWholeSource
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
// Uses whole source.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.UsesWholeSource()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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"
yuiRenderImagePresentation.UsesLinearSampling
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
// Uses linear sampling.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.UsesLinearSampling()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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"
yuiRenderImagePresentation.HasExplicitSamplingPolicy
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
// Has explicit sampling policy.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.HasExplicitSamplingPolicy()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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"
yuiRenderImagePresentation.UsesNineSlice
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
// Uses nine slice.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.UsesNineSlice()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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"
yuiRenderImagePresentation.UsesExplicitSizing
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
// Uses explicit sizing.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.UsesExplicitSizing()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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"
yuiRenderImagePresentation.ResolvedNaturalWidth
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
// Resolved natural width.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
int argument_sourceWidth = 1
int result = instance.ResolvedNaturalWidth(argument_sourceWidth)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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"
yuiRenderImagePresentation.ResolvedNaturalHeight
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
// Resolved natural height.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
int argument_sourceHeight = 1
int result = instance.ResolvedNaturalHeight(argument_sourceHeight)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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"
yuiRenderImagePresentation.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.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
int argument_imageWidth = 1
int argument_imageHeight = 1
text result = instance.ValidationIssue(argument_imageWidth, argument_imageHeight)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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"
yuiRenderImagePresentation.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 ui
// Describe.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
text result = instance.Describe()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
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/render-00-definitions.yh:329