MCPcopy Create free account
hub / github.com/andlabs/ui / DrawTextLayoutParams

Struct DrawTextLayoutParams

drawtext.go:480–485  ·  view source on GitHub ↗

DrawTextLayoutParams describes a DrawTextLayout. DefaultFont is used to render any text that is not attributed sufficiently in String. Width determines the width of the bounding box of the text; the height is determined automatically.

Source from the content-addressed store, hash-verified

478// sufficiently in String. Width determines the width of the bounding
479// box of the text; the height is determined automatically.
480type DrawTextLayoutParams struct {
481 String *AttributedString
482 DefaultFont *FontDescriptor
483 Width float64
484 Align DrawTextAlign
485}
486
487// DrawNewTextLayout() creates a new DrawTextLayout from
488// the given parameters.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected