MCPcopy
hub / github.com/lxn/walk / SetText

Method SetText

textlabel.go:63–73  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

61}
62
63func (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
75func (tl *TextLabel) CreateLayoutItem(ctx *LayoutContext) LayoutItem {
76 return &textLabelLayoutItem{

Callers 1

NewTextLabelWithStyleFunction · 0.45

Calls 2

setTextMethod · 0.45
PublishMethod · 0.45

Tested by

no test coverage detected