MCPcopy
hub / github.com/pterm/pterm / WithTitleBottomCenter

Method WithTitleBottomCenter

box_printer.go:121–130  ·  view source on GitHub ↗

WithTitleBottomCenter returns a new box with a specific Title alignment.

(b ...bool)

Source from the content-addressed store, hash-verified

119
120// WithTitleBottomCenter returns a new box with a specific Title alignment.
121func (p BoxPrinter) WithTitleBottomCenter(b ...bool) *BoxPrinter {
122 b2 := internal.WithBoolean(b)
123 p.TitleTopLeft = false
124 p.TitleTopRight = false
125 p.TitleTopCenter = false
126 p.TitleBottomLeft = false
127 p.TitleBottomRight = false
128 p.TitleBottomCenter = b2
129 return &p
130}
131
132// WithBoxStyle returns a new box with a specific box Style.
133func (p BoxPrinter) WithBoxStyle(style *Style) *BoxPrinter {

Callers 5

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

WithBooleanFunction · 0.92