func (s *Segment) MinWidth(minWidth int) *Segment {
	s.minWidth = minWidth
	return s
}
MinWidth sets the minimum width for the segment.
package bar
import "image/color"
func TextSegment(text string) *Segment {
	return new(Segment).Text(text)
}
func PangoSegment(text string) *Segment {
	return new(Segment).Pango(text)
}
func ErrorSegment(e error) *Segment {
	return TextSegment("Error").Error(e).ShortText("!").Urgent(true)
}
func (s *Segment) Text(content string) *Segment {
	s.text = content
	s.pango = false
	return s
}
func (s *Segment) Pango(content string) *Segment {
	s.text = content
	s.pango = true
	return s
}
func (s *Segment) Content() (text string, isPango bool) {
	return s.text, s.pango
}
func (s *Segment) ShortText(shortText string) *Segment {
	s.shortText = shortText
	s.attrSet |= saShortText
	return s
}
func (s *Segment) GetShortText() (string, bool) {
	return s.shortText, s.attrSet&saShortText != 0
}
func (s *Segment) Error(err error) *Segment {
	s.err = err
	return s
}
func (s *Segment) GetError() error {
	return s.err
}
func (s *Segment) Color(color color.Color) *Segment {
	s.color = color
	return s
}
func (s *Segment) GetColor() (color.Color, bool) {
	return s.color, s.color != nil
}
func (s *Segment) Background(background color.Color) *Segment {
	s.background = background
	return s
}
func (s *Segment) GetBackground() (color.Color, bool) {
	return s.background, s.background != nil
}
func (s *Segment) Border(border color.Color) *Segment {
	s.border = border
	return s
}
func (s *Segment) GetBorder() (color.Color, bool) {
	return s.border, s.border != nil
}