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

Method SetAttribute

drawtext.go:408–410  ·  view source on GitHub ↗

SetAttribute sets a in the byte range [start, end) of s. Any existing attributes in that byte range of the same type are removed.

(a Attribute, start, end int)

Source from the content-addressed store, hash-verified

406// SetAttribute sets a in the byte range [start, end) of s. Any existing
407// attributes in that byte range of the same type are removed.
408func (s *AttributedString) SetAttribute(a Attribute, start, end int) {
409 C.uiAttributedStringSetAttribute(s.s, a.toLibui(), C.size_t(start), C.size_t(end))
410}
411
412// TODO uiAttributedStringForEachAttribute
413// TODO uiAttributedStringNumGraphemes

Callers 1

appendWithAttributesFunction · 0.80

Calls 1

toLibuiMethod · 0.65

Tested by

no test coverage detected