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

Struct DrawTextLayout

drawtext.go:462–464  ·  view source on GitHub ↗

DrawTextLayout is a concrete representation of an AttributedString that can be displayed in a DrawContext. It includes information important for the drawing of a block of text, including the bounding box to wrap the text within, the alignment of lines of text within that box, areas to mark as being

Source from the content-addressed store, hash-verified

460//
461// TODO talk about OS-specific differences with text drawing that libui can't account for...
462type DrawTextLayout struct {
463 tl *C.uiDrawTextLayout
464}
465
466// DrawTextAlign specifies the alignment of lines of text in a
467// DrawTextLayout.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected