Empty returns true if there are no text lines or text spans.
()
| 1064 | |
| 1065 | // Empty returns true if there are no text lines or text spans. |
| 1066 | func (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. |
| 1076 | func (t *Text) Lines() int { |
no outgoing calls
no test coverage detected