func (s *Segment) Click(e Event) {
	if s.onClick != nil {
		s.onClick(e)
	}
}
Click calls a previously set click handler with the given Event.
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
}
func (s *Segment) MinWidth(minWidth int) *Segment {
	s.minWidth = minWidth
	return s
}
func (s *Segment) MinWidthPlaceholder(placeholder string) *Segment {
	s.minWidth = placeholder
	return s
}
func (s *Segment) GetMinWidth() (interface{}, bool) {
	return s.minWidth, s.minWidth != nil
}
func (s *Segment) Align(align TextAlignment) *Segment {
	s.align = align
	return s
}
func (s *Segment) GetAlignment() (TextAlignment, bool) {
	return s.align, s.align != ""
}
func (s *Segment) Urgent(urgent bool) *Segment {
	s.urgent = urgent
	s.attrSet |= saUrgent
	return s
}
func (s *Segment) IsUrgent() (bool, bool) {
	return s.urgent, s.attrSet&saUrgent != 0
}
func (s *Segment) Separator(separator bool) *Segment {
	s.separator = separator
	s.attrSet |= saSeparator
	return s
}
func (s *Segment) HasSeparator() (bool, bool) {
	if s.attrSet&saSeparator != 0 {
		return s.separator, true
	}
	return true, false
}
func (s *Segment) Padding(padding int) *Segment {
	s.padding = padding
	s.attrSet |= saPadding
	return s
}
func (s *Segment) GetPadding() (int, bool) {
	if s.attrSet&saPadding != 0 {
		return s.padding, true
	}
	return 9, false
}
func (s *Segment) OnClick(fn func(Event)) *Segment {
	if fn == nil {
		fn = func(Event) {}
	}
	s.onClick = fn
	return s
}
func (s *Segment) HasClick() bool {
	return s.onClick != nil
}