MCPcopy
hub / github.com/mum4k/termdash / AlignHorizontal

Function AlignHorizontal

widgets/segmentdisplay/options.go:66–70  ·  view source on GitHub ↗

AlignHorizontal sets the horizontal alignment for the individual display segments. Defaults to alignment in the center.

(h align.Horizontal)

Source from the content-addressed store, hash-verified

64// AlignHorizontal sets the horizontal alignment for the individual display
65// segments. Defaults to alignment in the center.
66func AlignHorizontal(h align.Horizontal) Option {
67 return option(func(opts *options) {
68 opts.hAlign = h
69 })
70}
71
72// AlignVertical sets the vertical alignment for the individual display
73// segments. Defaults to alignment in the middle

Callers 3

newControlsTabFunction · 0.92
newControlsTabFunction · 0.92
TestSegmentDisplayFunction · 0.70

Calls 1

optionFuncType · 0.70

Tested by 1

TestSegmentDisplayFunction · 0.56