MCPcopy Create free account
hub / github.com/tdewolff/canvas / String

Method String

text.go:33–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31)
32
33func (ta TextAlign) String() string {
34 switch ta {
35 case Left:
36 return "Left"
37 case Right:
38 return "Right"
39 case Center:
40 return "Center"
41 case Middle:
42 return "Middle"
43 case Top:
44 return "Top"
45 case Bottom:
46 return "Bottom"
47 case Justify:
48 return "Justify"
49 }
50 return "Invalid(" + strconv.Itoa(int(ta)) + ")"
51}
52
53// VerticalAlign specifies how the object should align vertically when embedded in text.
54type VerticalAlign int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected