Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BannerWidget ¶ added in v0.15.0
type BannerWidget struct {
// contains filtered or unexported fields
}
BannerWidget struct used to build the banner where we show the name of the app.
func NewBannerWidget ¶ added in v0.15.0
func NewBannerWidget(name string, x0, y0, x1, y1 float32, label string, color gocui.Attribute) *BannerWidget
NewBannerWidget returns a pointer to a BannerWidget instance.
type ButtonWidget ¶ added in v0.15.0
type ButtonWidget struct {
// contains filtered or unexported fields
}
ButtonWidget struct used to build buttons. y work as factor to determine the widget's height, since the terminal's size is retrieved in the Layout method.
func NewButtonWidget ¶ added in v0.15.0
func NewButtonWidget(name string, x int, y float32, label string, color gocui.Attribute) *ButtonWidget
NewButtonWidget returns a pointer to a ButtonWidget instance.
type EditorWidget ¶ added in v0.15.0
type EditorWidget struct {
// contains filtered or unexported fields
}
EditorWidget struct used as an editor to perform queries to the databases.
func NewEditorWidget ¶ added in v0.15.0
func NewEditorWidget(name string, x0, y0, x1, y1 float32, label string) *EditorWidget
NewEditorWidget returns a pointer to a EditorWidget instance.
type Gui ¶
type Gui struct {
// contains filtered or unexported fields
}
Gui wraps the gocui Gui object which handles rendering and events.
type LabelWidget ¶ added in v0.15.0
type LabelWidget struct {
// contains filtered or unexported fields
}
LabelWidget struct used to display data to dynamic data to the user. y work as factor to determine the widget's height, since the terminal's size is retrieved in the Layout method.
func NewLabelWidget ¶ added in v0.15.0
func NewLabelWidget(name string, x int, y float32, label string, color gocui.Attribute) *LabelWidget
NewLabelWidget returns a pointer to a LabelWidget instance.
type NavigationWidget ¶ added in v0.15.0
type NavigationWidget struct {
// contains filtered or unexported fields
}
NavigationWidget struct used to show the navigation panel.
func NewNavigationWidget ¶ added in v0.15.0
func NewNavigationWidget(name string, x0, y0, x1, y1 float32, label string, options []string) *NavigationWidget
NewNavigationWidget returns a pointer to a NavigationWidget instance.
type OutputWidget ¶ added in v0.15.0
type OutputWidget struct {
// contains filtered or unexported fields
}
OutputWidget struct used to show important data to the user based off the context.
func NewOutputWidget ¶ added in v0.15.0
func NewOutputWidget(name string, x0, y0, x1, y1 float32, label string, initMsg string) *OutputWidget
NewOutputWidget returns a pointer to a OutputWidget instance.
type TableWidget ¶ added in v0.15.0
type TableWidget struct {
// contains filtered or unexported fields
}
TableWidget struct used to build the section for the sql tables content.
func NewTableWidget ¶ added in v0.15.0
func NewTableWidget(name string, x0, y0, x1, y1 float32, label string, bgcolor, fgcolor gocui.Attribute, gui *Gui) *TableWidget
NewTableWidget returns a pointer to a TableWidget instance.