graphics.text · thing ·

graphicsGlyphAlphaCacheV1

A graphics glyph alpha cache v1 record carrying maximumEntries, maximumBytes, entries, liveBytes, clock, and related state.

cpugraphicsgraphics.textmethodsource-exampletextthingyeho

Shape, measure, and represent text and glyph resources.

external thing graphicsGlyphAlphaCacheV1

Status: source-declared

Fields and methods (16)
int maximumEntries
Stores maximum entries as int.
int maximumBytes
Stores maximum bytes as int.
list of graphicsGlyphAlphaCacheEntryV1 entries
Stores entries as list of graphicsGlyphAlphaCacheEntryV1.
int liveBytes
Stores live bytes as int.
int clock
Stores clock as int.
int hits
Stores hits as int.
int misses
Stores misses as int.
int evictions
Stores evictions as int.
text source
Stores source as text.
graphicsGlyphAlphaCacheV1(int maximumEntries, int maximumBytes, text source)
Graphics glyph alpha cache v1.
ConfigurationIssue() returns text
Configuration issue. Complete example
Find(text id) returns int
Find. Complete example
Require(text id) returns bool
Require. Complete example
EvictOldest() returns bool
Evict oldest. Complete example
Admit(graphicsGlyphAlphaResourceV1 resource) returns bool
Admit. Complete example
Snapshot() returns text
Snapshot. Complete example

Use graphicsGlyphAlphaCacheV1

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.
graphicsGlyphAlphaCacheV1 sample = graphicsGlyphAlphaCacheV1(1, 4, "example")
Console.Log(Text.From(sample.maximumEntries))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphalphacachev1"
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"

graphicsGlyphAlphaCacheV1.ConfigurationIssue

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

// Configuration issue.
graphicsGlyphAlphaCacheV1 instance = graphicsGlyphAlphaCacheV1(1, 4, "example")
text result = instance.ConfigurationIssue()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphalphacachev1"
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"

graphicsGlyphAlphaCacheV1.Find

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

// Find.
graphicsGlyphAlphaCacheV1 instance = graphicsGlyphAlphaCacheV1(1, 4, "example")
text argument_id = "argument id"
int result = instance.Find(argument_id)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphalphacachev1"
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"

graphicsGlyphAlphaCacheV1.Require

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

// Require.
graphicsGlyphAlphaCacheV1 instance = graphicsGlyphAlphaCacheV1(1, 4, "example")
text argument_id = "argument id"
bool result = instance.Require(argument_id)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphalphacachev1"
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"

graphicsGlyphAlphaCacheV1.EvictOldest

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

// Evict oldest.
graphicsGlyphAlphaCacheV1 instance = graphicsGlyphAlphaCacheV1(1, 4, "example")
bool result = instance.EvictOldest()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphalphacachev1"
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"

graphicsGlyphAlphaCacheV1.Admit

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

// Admit.
graphicsGlyphAlphaCacheV1 instance = graphicsGlyphAlphaCacheV1(1, 4, "example")
graphicsGlyphAlphaResourceV1 argument_resource = graphicsGlyphAlphaResourceV1(1, "id", 1, 1, 4, 4, "payload Hex", "example")
bool result = instance.Admit(argument_resource)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphalphacachev1"
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"

graphicsGlyphAlphaCacheV1.Snapshot

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

// Snapshot.
graphicsGlyphAlphaCacheV1 instance = graphicsGlyphAlphaCacheV1(1, 4, "example")
text result = instance.Snapshot()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphalphacachev1"
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/glyph_alpha_resources_v1.yh:363