(text string)
| 61 | } |
| 62 | |
| 63 | func (tl *TextLabel) SetText(text string) error { |
| 64 | if changed, err := tl.setText(text); err != nil { |
| 65 | return err |
| 66 | } else if !changed { |
| 67 | return nil |
| 68 | } |
| 69 | |
| 70 | tl.textChangedPublisher.Publish() |
| 71 | |
| 72 | return nil |
| 73 | } |
| 74 | |
| 75 | func (tl *TextLabel) CreateLayoutItem(ctx *LayoutContext) LayoutItem { |
| 76 | return &textLabelLayoutItem{ |
no test coverage detected