(text []rune)
| 2433 | } |
| 2434 | |
| 2435 | func (label *Label) SetTextRaw(text []rune) { |
| 2436 | |
| 2437 | if string(label.Text) != string(text) { |
| 2438 | |
| 2439 | label.Text = []rune{} |
| 2440 | for _, c := range text { |
| 2441 | label.Text = append(label.Text, c) |
| 2442 | } |
| 2443 | |
| 2444 | label.TextureDirty = true |
| 2445 | |
| 2446 | } |
| 2447 | |
| 2448 | } |
| 2449 | |
| 2450 | // NextAutobreak returns the index of the next automatic break in the text. |
| 2451 | func (label *Label) NextAutobreak(startPoint int) int { |
no outgoing calls
no test coverage detected