MCPcopy
hub / github.com/tdewolff/canvas / Empty

Method Empty

text.go:1066–1073  ·  view source on GitHub ↗

Empty returns true if there are no text lines or text spans.

()

Source from the content-addressed store, hash-verified

1064
1065// Empty returns true if there are no text lines or text spans.
1066func (t *Text) Empty() bool {
1067 for _, line := range t.lines {
1068 if len(line.spans) != 0 {
1069 return false
1070 }
1071 }
1072 return true
1073}
1074
1075// Lines returns the number of text lines of the text box.
1076func (t *Text) Lines() int {

Callers 2

BoundsMethod · 0.95
OutlineBoundsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected