graphics.text · thing ·

graphicsTextMeasureResult

A graphics text measure result record carrying width, height, clipped, diagnostic.

cpugraphicsgraphics.textmethodsource-exampletextthingyeho

Shape, measure, and represent text and glyph resources.

external thing graphicsTextMeasureResult

Status: source-declared

Fields and methods (6)
int width
Stores width as int.
int height
Stores height as int.
bool clipped
Stores clipped as bool.
text diagnostic
Stores diagnostic as text.
graphicsTextMeasureResult(int width, int height, bool clipped, text diagnostic)
Graphics text measure result.
Describe() returns text
Describe. Complete example

Use graphicsTextMeasureResult

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using graphics.text

// Shape, measure, and represent text and glyph resources.
graphicsTextMeasureResult sample = graphicsTextMeasureResult(1, 1, true, "diagnostic")
Console.Log(Text.From(sample.width))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicstextmeasureresult"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

graphicsTextMeasureResult.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 graphics.text

// Describe.
graphicsTextMeasureResult instance = graphicsTextMeasureResult(1, 1, true, "diagnostic")
text result = instance.Describe()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicstextmeasureresult"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"
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/graphics/text/text.yh:78