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

Function newOptions

widgets/segmentdisplay/options.go:56–62  ·  view source on GitHub ↗

newOptions returns options with the default values set.

()

Source from the content-addressed store, hash-verified

54
55// newOptions returns options with the default values set.
56func newOptions() *options {
57 return &options{
58 hAlign: align.HorizontalCenter,
59 vAlign: align.VerticalMiddle,
60 gapPercent: DefaultGapPercent,
61 }
62}
63
64// AlignHorizontal sets the horizontal alignment for the individual display
65// segments. Defaults to alignment in the center.

Callers 1

NewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected