Documentation ¶
Index ¶
- func NewLogger() logrus.StdLogger
- type Item
- func (w *Item) Editor() *ItemEditor
- func (w *Item) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func (w *Item) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- func (w *Item) Selectable() bool
- func (w *Item) Title() string
- func (w *Item) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool
- type ItemEditor
- type NoteList
- func (w *NoteList) Register(i *Item)
- func (w *NoteList) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func (w *NoteList) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- func (w *NoteList) Selectable() bool
- func (w *NoteList) Sort(field string)
- func (w *NoteList) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool
- type TUI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Item ¶
type Item struct { ID string // contains filtered or unexported fields }
An Item is the graphical representation of an libsf.Item.
func (*Item) Editor ¶
func (w *Item) Editor() *ItemEditor
Editor returns the ItemContent of the Item.
func (*Item) RenderSize ¶
func (w *Item) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
RenderSize implements gowid.IWidget
type ItemEditor ¶
An ItemEditor is the graphical representation of editable libsf.Item text.
func (*ItemEditor) Render ¶
func (w *ItemEditor) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
Render implements gowid.IWidget
func (*ItemEditor) UserInput ¶
func (w *ItemEditor) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool
UserInput implements gowid.IWidget
type NoteList ¶
type NoteList struct {
// contains filtered or unexported fields
}
A NoteList is a list of Items to interract with. It implements gowid.IWidget by delegating to its presentation.
func (*NoteList) Render ¶
func (w *NoteList) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
Render implements gowid.IWidget
func (*NoteList) RenderSize ¶
func (w *NoteList) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
RenderSize implements gowid.IWidget
func (*NoteList) Selectable ¶
Selectable implements gowid.IWidget
Click to show internal directories.
Click to hide internal directories.