Documentation ¶
Index ¶
- Constants
- Variables
- func HideHelp() error
- func NewButtonWidget(name string, x, y, w int, label string, ...) *gocui.View
- func NewButtonWidgetAutoWidth(name string, x, y int, label string, ...) *gocui.View
- func NewHelpWidget()
- func NewLabelWidget(name string, x, y int, label string) *gocui.View
- func NewLabelWidgetAutoWidth(name string, x, y int, label string) *gocui.View
- func NewPanelWidget(name string, x, y, w, h int, body string) *gocui.View
- func NewRadioWidget(name string, x, y int, checked bool) *gocui.View
- func NewSelectWidget(name string, x, y, w, h int, title string, options []model.Option, ...) *gocui.View
- func NewSelectWidgetWithDefault(name string, x, y, w, h int, title string, options []model.Option, ...) *gocui.View
- func NewTextWidget(name string, x, y, w int, text string) *gocui.View
- func NewTextareaWidget(name string, x, y, w, h int, text string) *gocui.View
- func ParseRadioVal(val string) bool
- func ShowHelp() error
- func ShowHelpFromView(g *gocui.Gui, v *gocui.View) error
- type ButtonWidget
- type HelpWidget
- type LabelWidget
- type PanelWidget
- type RadioWidget
- type SelectWidget
- type TextWidget
Constants ¶
View Source
const ( LabelWidth = 15 LabelHeight = 2 LabelWidthSmall = 10 SelectWidth = 20 )
View Source
const ( TextWidthFull = 69 TextHeight = 2 )
View Source
const (
ButtonHeight = 2
)
Variables ¶
View Source
var (
HelpGlobal = ""
)
Functions ¶
func NewButtonWidget ¶
func NewHelpWidget ¶
func NewHelpWidget()
func NewLabelWidgetAutoWidth ¶
func NewSelectWidget ¶
func NewTextareaWidget ¶
func ParseRadioVal ¶
Types ¶
type ButtonWidget ¶
type ButtonWidget struct {
// contains filtered or unexported fields
}
type HelpWidget ¶
type HelpWidget struct {
// contains filtered or unexported fields
}
func (*HelpWidget) Layout ¶
func (w *HelpWidget) Layout() error
type LabelWidget ¶
type LabelWidget struct {
// contains filtered or unexported fields
}
type PanelWidget ¶
type PanelWidget struct {
// contains filtered or unexported fields
}
type RadioWidget ¶
type RadioWidget struct {
// contains filtered or unexported fields
}
type SelectWidget ¶
type SelectWidget struct {
// contains filtered or unexported fields
}
type TextWidget ¶
type TextWidget struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.