MCPcopy Index your code
hub / github.com/lxn/walk / SetTextAlignment

Method SetTextAlignment

textlabel.go:51–57  ·  view source on GitHub ↗
(alignment Alignment2D)

Source from the content-addressed store, hash-verified

49}
50
51func (tl *TextLabel) SetTextAlignment(alignment Alignment2D) error {
52 if alignment == AlignHVDefault {
53 alignment = AlignHNearVNear
54 }
55
56 return tl.setTextAlignment(alignment)
57}
58
59func (tl *TextLabel) Text() string {
60 return tl.text()

Callers

nothing calls this directly

Calls 1

setTextAlignmentMethod · 0.80

Tested by

no test coverage detected