Versions in this module Expand all Collapse all v1 v1.4.2 Sep 22, 2024 v1.4.1 Sep 22, 2024 Changes in this version + var BadState = fmt.Errorf("Broken state in list widget") + func CalculateOnScreen(w IListFns, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) (int, int, int, error) + func Render(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas + func SubWidgetSize(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize + type IBoundedWalker interface + Length func() int + type IBoundedWalkerPosition interface + ToInt func() int + type IListFns interface + RenderSubwidgets func(gowid.IRenderSize, gowid.Selector, gowid.IApp) ([]SubRenders, SubRenders, []SubRenders) + SetWalker func(IWalker, gowid.IApp) + Walker func() IWalker + type IWalker interface + At func(pos IWalkerPosition) gowid.IWidget + Focus func() IWalkerPosition + Next func(pos IWalkerPosition) IWalkerPosition + Previous func(pos IWalkerPosition) IWalkerPosition + SetFocus func(pos IWalkerPosition, app gowid.IApp) + type IWalkerEnd interface + Last func() IWalkerPosition + type IWalkerHome interface + First func() IWalkerPosition + type IWalkerPosition interface + Equal func(IWalkerPosition) bool + GreaterThan func(IWalkerPosition) bool + type IWidget interface + type IndexedWidget struct + func NewBounded(walker IBoundedWalker, opts ...Options) *IndexedWidget + func (w *IndexedWidget) SetWalker(l IWalker, app gowid.IApp) + func (w *IndexedWidget) Walker() IWalker + type ListPos int + func (l ListPos) Equal(other IWalkerPosition) bool + func (l ListPos) GreaterThan(other IWalkerPosition) bool + func (l ListPos) ToInt() int + type Options struct + DoNotSetSelected bool + DownKeys []vim.KeyPress + UpKeys []vim.KeyPress + type SimpleListWalker struct + Widgets []gowid.IWidget + func NewSimpleListWalker(widgets []gowid.IWidget) *SimpleListWalker + func (w *SimpleListWalker) At(pos IWalkerPosition) gowid.IWidget + func (w *SimpleListWalker) First() IWalkerPosition + func (w *SimpleListWalker) Focus() IWalkerPosition + func (w *SimpleListWalker) Last() IWalkerPosition + func (w *SimpleListWalker) Length() int + func (w *SimpleListWalker) Next(ipos IWalkerPosition) IWalkerPosition + func (w *SimpleListWalker) Previous(ipos IWalkerPosition) IWalkerPosition + func (w *SimpleListWalker) SetFocus(focus IWalkerPosition, app gowid.IApp) + type SubRenders struct + Canvas gowid.ICanvas + FullCanvasLines int + Position IWalkerPosition + Widget gowid.IWidget + func (r *SubRenders) IsChopped() bool + type WalkerIndex struct + Pos IWalkerPosition + Widget gowid.IWidget + type Widget struct + func New(walker IWalker, opts ...Options) *Widget + func (w *Widget) AtBottom() bool + func (w *Widget) AtTop() bool + func (w *Widget) CalculateOnScreen(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) (int, int, int, error) + func (w *Widget) GoToBottom(app gowid.IApp) + func (w *Widget) GoToMiddle(app gowid.IApp) + func (w *Widget) GoToTop(app gowid.IApp) + func (w *Widget) InMiddle() bool + func (w *Widget) MoveToNextFocus(subRenderSize gowid.IRenderSize, focus gowid.Selector, screenLines int, ...) (bool, IWalkerPosition) + func (w *Widget) MoveToPreviousFocus(subRenderSize gowid.IRenderSize, focus gowid.Selector, screenLines int, ...) (bool, IWalkerPosition) + func (w *Widget) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas + func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox + func (w *Widget) RenderSubwidgets(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) (top []SubRenders, middle SubRenders, bottom []SubRenders) + func (w *Widget) SelectChild(f gowid.Selector) bool + func (w *Widget) SetState(st interface{}, app gowid.IApp) + func (w *Widget) SetWalker(l IWalker, app gowid.IApp) + func (w *Widget) State() interface{} + func (w *Widget) String() string + func (w *Widget) SubWidgetSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize + func (w *Widget) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool + func (w *Widget) Walker() IWalker + type WidgetIsUnboundedError struct + Type interface{} + func (e WidgetIsUnboundedError) Error() string