Documentation
¶
Index ¶
- func FormatHeaders(headers http.Header) []string
- type Button
- func (e *Button) Draw(c *console.Console)
- func (e *Button) GetText() string
- func (e *Button) IsPressed() bool
- func (e *Button) OnEvent(event tb.Event)
- func (e *Button) OnPress(onPress func()) *Button
- func (e *Button) OnRelease(onRelease func()) *Button
- func (e *Button) Press()
- func (e *Button) Release()
- func (e *Button) SetCustomStyle(customStyle tb.Attribute)
- func (e *Button) SetInactive()
- func (e *Button) SetPressedStyle(style window.ButtonStyle)
- func (e *Button) SetReleasedStyle(style window.ButtonStyle)
- func (e *Button) SetText(text string)
- type ColorJSONScheme
- type Container
- type Frame
- type HLine
- type HeadersView
- type JSONView
- func (e *JSONView) Colours(colors ColorJSONScheme) *JSONView
- func (e *JSONView) Draw(c *console.Console)
- func (e *JSONView) Home()
- func (e *JSONView) OnEvent(event tb.Event)
- func (e *JSONView) OnSpace()
- func (e *JSONView) PrintLine(c *console.Console, x, y int, s string, fgs []tb.Attribute, bg tb.Attribute)
- func (e *JSONView) ScrollDown()
- func (e *JSONView) ScrollLeft()
- func (e *JSONView) ScrollRight()
- func (e *JSONView) ScrollUp()
- func (e *JSONView) Set(obj interface{})
- func (e *JSONView) SetHighlightColor(hlColor tb.Attribute)
- func (e *JSONView) WithColorJSONScheme(jsonColors ColorJSONScheme) *JSONView
- type SelectView
- func (e *SelectView) Append(content SelectViewItem)
- func (e *SelectView) Draw(c *console.Console)
- func (e *SelectView) GetItems() []SelectViewItem
- func (e *SelectView) GetNotVisited() int
- func (e *SelectView) GetSize() int
- func (e *SelectView) Home()
- func (e *SelectView) InitSelectView(areaTransformer window.AreaTransformer, ...)
- func (e *SelectView) MarkAllVisited()
- func (e *SelectView) OnChange(onChange func()) *SelectView
- func (e *SelectView) OnEnd()
- func (e *SelectView) OnEvent(event tb.Event)
- func (e *SelectView) OnSelect(onSelect func(l interface{})) *SelectView
- func (e *SelectView) ResetMarker()
- func (e *SelectView) ScrollDown(visit bool)
- func (e *SelectView) ScrollLeft()
- func (e *SelectView) ScrollRight()
- func (e *SelectView) ScrollUp(visit bool)
- func (e *SelectView) Set(content []SelectViewItem)
- func (e *SelectView) SetHighlightColor(hlColor tb.Attribute)
- func (e *SelectView) SetVisitedColor(color tb.Attribute)
- type SelectViewItem
- type TextView
- type Toggle
- type VLine
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatHeaders ¶
Types ¶
type Button ¶
func (*Button) SetCustomStyle ¶
func (*Button) SetInactive ¶
func (e *Button) SetInactive()
func (*Button) SetPressedStyle ¶
func (e *Button) SetPressedStyle(style window.ButtonStyle)
func (*Button) SetReleasedStyle ¶
func (e *Button) SetReleasedStyle(style window.ButtonStyle)
type ColorJSONScheme ¶
type ColorJSONScheme struct {
KeyColor tb.Attribute
KeyObjectColor tb.Attribute
ValueColor tb.Attribute
TagColor tb.Attribute
ColonColor tb.Attribute
CollapseSignColor tb.Attribute
}
func DefaultColorJSONScheme ¶
func DefaultColorJSONScheme() ColorJSONScheme
type Container ¶
func NewContainer ¶
func NewContainer(areaTransformer window.AreaTransformer) *Container
type Frame ¶
func NewFrame ¶
func NewFrame(areaTransformer window.AreaTransformer, style window.FrameStyle) *Frame
type HeadersView ¶
type HeadersView struct {
SelectView
// contains filtered or unexported fields
}
func NewHeadersView ¶
func NewHeadersView(areaTransformer window.AreaTransformer) *HeadersView
func (*HeadersView) Foregrounds ¶
func (*HeadersView) SetHeaders ¶
func (e *HeadersView) SetHeaders(headers http.Header)
func (*HeadersView) SetKeyColor ¶
func (e *HeadersView) SetKeyColor(color tb.Attribute)
func (*HeadersView) SetValueColor ¶
func (e *HeadersView) SetValueColor(color tb.Attribute)
type JSONView ¶
func NewJSONView ¶
func NewJSONView(areaTransformer window.AreaTransformer) *JSONView
func (*JSONView) Colours ¶
func (e *JSONView) Colours(colors ColorJSONScheme) *JSONView
func (*JSONView) ScrollDown ¶
func (e *JSONView) ScrollDown()
func (*JSONView) ScrollLeft ¶
func (e *JSONView) ScrollLeft()
func (*JSONView) ScrollRight ¶
func (e *JSONView) ScrollRight()
func (*JSONView) SetHighlightColor ¶
func (*JSONView) WithColorJSONScheme ¶
func (e *JSONView) WithColorJSONScheme(jsonColors ColorJSONScheme) *JSONView
type SelectView ¶
func NewSelectView ¶
func NewSelectView(areaTransformer window.AreaTransformer) *SelectView
func (*SelectView) Append ¶
func (e *SelectView) Append(content SelectViewItem)
func (*SelectView) Draw ¶
func (e *SelectView) Draw(c *console.Console)
func (*SelectView) GetItems ¶
func (e *SelectView) GetItems() []SelectViewItem
func (*SelectView) GetNotVisited ¶
func (e *SelectView) GetNotVisited() int
func (*SelectView) GetSize ¶
func (e *SelectView) GetSize() int
func (*SelectView) Home ¶
func (e *SelectView) Home()
func (*SelectView) InitSelectView ¶
func (e *SelectView) InitSelectView(areaTransformer window.AreaTransformer, foregrounds func(bool, bool, string) ([]tb.Attribute, tb.Attribute))
func (*SelectView) MarkAllVisited ¶
func (e *SelectView) MarkAllVisited()
func (*SelectView) OnChange ¶
func (e *SelectView) OnChange(onChange func()) *SelectView
func (*SelectView) OnEnd ¶
func (e *SelectView) OnEnd()
func (*SelectView) OnEvent ¶
func (e *SelectView) OnEvent(event tb.Event)
func (*SelectView) OnSelect ¶
func (e *SelectView) OnSelect(onSelect func(l interface{})) *SelectView
func (*SelectView) ResetMarker ¶
func (e *SelectView) ResetMarker()
func (*SelectView) ScrollDown ¶
func (e *SelectView) ScrollDown(visit bool)
func (*SelectView) ScrollLeft ¶
func (e *SelectView) ScrollLeft()
func (*SelectView) ScrollRight ¶
func (e *SelectView) ScrollRight()
func (*SelectView) ScrollUp ¶
func (e *SelectView) ScrollUp(visit bool)
func (*SelectView) Set ¶
func (e *SelectView) Set(content []SelectViewItem)
func (*SelectView) SetHighlightColor ¶
func (e *SelectView) SetHighlightColor(hlColor tb.Attribute)
func (*SelectView) SetVisitedColor ¶
func (e *SelectView) SetVisitedColor(color tb.Attribute)
type SelectViewItem ¶
type SelectViewItem interface {
String() string
}
type TextView ¶
func NewTextView ¶
func NewTextView(areaTransformer window.AreaTransformer, text string) *TextView
Click to show internal directories.
Click to hide internal directories.