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

Function NewAttributedString

drawtext.go:365–371  ·  view source on GitHub ↗

NewAttributedString creates a new AttributedString from initialString. The string will be entirely unattributed.

(initialString string)

Source from the content-addressed store, hash-verified

363// NewAttributedString creates a new AttributedString from
364// initialString. The string will be entirely unattributed.
365func NewAttributedString(initialString string) *AttributedString {
366 cs := C.CString(initialString)
367 defer freestr(cs)
368 return &AttributedString{
369 s: C.uiNewAttributedString(cs),
370 }
371}
372
373// Free destroys s.
374func (s *AttributedString) Free() {

Callers

nothing calls this directly

Calls 1

freestrFunction · 0.85

Tested by

no test coverage detected