Documentation ¶
Index ¶
- type Alignment
- type Column
- type ColumnConfiguration
- type ColumnID
- type Command
- type HierarchicalTable
- func (t *HierarchicalTable) ActiveNodePath() []interface{}
- func (t *HierarchicalTable) Collapse(path ...interface{})
- func (t HierarchicalTable) Draw(w Window)
- func (t *HierarchicalTable) Process(ev *tcell.EventKey)
- func (t *HierarchicalTable) Replace(nodes []TableNode)
- func (t *HierarchicalTable) Resize(width int, height int)
- func (t *HierarchicalTable) ScrollToNextMatch(s string, ascending bool) bool
- type Order
- type StyleTransform
- type StyleTransformDefinition
- type StyledString
- func (s *StyledString) Append(content string, t ...StyleTransform)
- func (s *StyledString) AppendString(other StyledString)
- func (s *StyledString) Apply(t StyleTransform)
- func (s StyledString) Contains(value string) bool
- func (s *StyledString) Fit(alignment Alignment, width int)
- func (s StyledString) Length() int
- func (s StyledString) String() string
- func (s *StyledString) Truncate(width int)
- func (s *StyledString) TruncateLeft(width int)
- type Suggestion
- type Suggestions
- type TUI
- type TableConfiguration
- type TableNode
- type TextArea
- type Widget
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnConfiguration ¶
func (ColumnConfiguration) IDs ¶
func (c ColumnConfiguration) IDs() []ColumnID
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) SetCompletions ¶
func (c *Command) SetCompletions(suggestions Suggestions)
type HierarchicalTable ¶
type HierarchicalTable struct {
// contains filtered or unexported fields
}
func NewHierarchicalTable ¶
func NewHierarchicalTable(conf TableConfiguration, nodes []TableNode, width int, height int) (HierarchicalTable, error)
func (*HierarchicalTable) ActiveNodePath ¶
func (t *HierarchicalTable) ActiveNodePath() []interface{}
func (*HierarchicalTable) Collapse ¶
func (t *HierarchicalTable) Collapse(path ...interface{})
func (HierarchicalTable) Draw ¶
func (t HierarchicalTable) Draw(w Window)
func (*HierarchicalTable) Process ¶
func (t *HierarchicalTable) Process(ev *tcell.EventKey)
func (*HierarchicalTable) Replace ¶
func (t *HierarchicalTable) Replace(nodes []TableNode)
func (*HierarchicalTable) Resize ¶
func (t *HierarchicalTable) Resize(width int, height int)
func (*HierarchicalTable) ScrollToNextMatch ¶
func (t *HierarchicalTable) ScrollToNextMatch(s string, ascending bool) bool
type StyleTransform ¶
func (StyleTransform) On ¶
func (t StyleTransform) On(other StyleTransform) StyleTransform
type StyleTransformDefinition ¶
type StyleTransformDefinition struct { Foreground *string `toml:"foreground"` Background *string `toml:"background"` Bold *bool `toml:"bold"` Underlined *bool `toml:"underlined"` Reversed *bool `toml:"reversed"` Dimmed *bool `toml:"dimmed"` Blink *bool `toml:"blink"` }
func (StyleTransformDefinition) Parse ¶
func (s StyleTransformDefinition) Parse() (StyleTransform, error)
type StyledString ¶
type StyledString struct {
// contains filtered or unexported fields
}
func Join ¶
func Join(ss []StyledString, sep StyledString) StyledString
func NewStyledString ¶
func NewStyledString(content string, ts ...StyleTransform) StyledString
func (*StyledString) Append ¶
func (s *StyledString) Append(content string, t ...StyleTransform)
func (*StyledString) AppendString ¶
func (s *StyledString) AppendString(other StyledString)
func (*StyledString) Apply ¶
func (s *StyledString) Apply(t StyleTransform)
func (StyledString) Contains ¶
func (s StyledString) Contains(value string) bool
func (*StyledString) Fit ¶
func (s *StyledString) Fit(alignment Alignment, width int)
func (StyledString) Length ¶
func (s StyledString) Length() int
func (StyledString) String ¶
func (s StyledString) String() string
func (*StyledString) Truncate ¶
func (s *StyledString) Truncate(width int)
func (*StyledString) TruncateLeft ¶
func (s *StyledString) TruncateLeft(width int)
type Suggestion ¶
type Suggestion struct { Value string DisplayValue StyledString DisplayInfo StyledString }
type Suggestions ¶
type Suggestions []Suggestion
func (Suggestions) Len ¶
func (a Suggestions) Len() int
func (Suggestions) Less ¶
func (a Suggestions) Less(i, j int) bool
func (Suggestions) Swap ¶
func (a Suggestions) Swap(i, j int)
type TableConfiguration ¶
type TableConfiguration struct { Sep string Cursor StyleTransform Header StyleTransform HeaderSuffixAscending string HeaderSuffixDescending string Columns ColumnConfiguration DefaultDepth int NodeStyle interface{} Order }
type TextArea ¶
type TextArea struct { Content []StyledString // contains filtered or unexported fields }
func NewTextArea ¶
func (*TextArea) WriteContent ¶
func (t *TextArea) WriteContent(lines ...StyledString)
Click to show internal directories.
Click to hide internal directories.