Documentation ¶
Index ¶
- func GenId() string
- type Event
- type EventBus
- func (EBus *EventBus) AddGlobalHandler(path string, handler func(Event))
- func (EBus *EventBus) AddWidgetHandler(wgt tview.Primitive, path string, handler func(Event))
- func (EBus *EventBus) ClearGlobalHandlers()
- func (EBus *EventBus) ClearWidgetHandlers(wgt tview.Primitive)
- func (EBus *EventBus) Init(app *tview.Application) error
- func (EBus *EventBus) Merge(name string, ec chan Event)
- func (EBus *EventBus) NewSysEvtCh() chan Event
- func (EBus *EventBus) RemoveGlobalHandler(path string)
- func (EBus *EventBus) RemoveWidgetHandler(wgt tview.Primitive, path string)
- func (EBus *EventBus) SendCustomEvent(path string, data interface{})
- func (EBus *EventBus) Start() error
- func (EBus *EventBus) Stop() error
- type EventCustom
- type EventError
- type EventInterrupt
- type EventKey
- type EventMouse
- type EventResize
- type EventStream
- func (es *EventStream) Handle(path string, handler func(Event))
- func (es *EventStream) Hook(f func(Event))
- func (es *EventStream) Init()
- func (es *EventStream) Loop()
- func (es *EventStream) Merge(name string, ec chan Event)
- func (es *EventStream) RemoveHandle(path string)
- func (es *EventStream) ResetHandlers()
- func (es *EventStream) StopLoop()
- type WgtInfo
- type WgtMgr
- func (wm WgtMgr) AddWgt(wgt tview.Primitive)
- func (wm WgtMgr) AddWgtHandler(id, path string, h func(Event))
- func (wm WgtMgr) ClearWgtHandlers(id string)
- func (wm WgtMgr) RmWgt(wgt tview.Primitive)
- func (wm WgtMgr) RmWgtById(id string)
- func (wm WgtMgr) RmWgtHandler(id, path string)
- func (wm WgtMgr) WgtHandlersHook() func(Event)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type EventBus ¶
type EventBus struct { EventStream *EventStream WgtMgr WgtMgr Handler func(e Event) // contains filtered or unexported fields }
func (*EventBus) AddGlobalHandler ¶
func (*EventBus) AddWidgetHandler ¶
func (*EventBus) ClearGlobalHandlers ¶
func (EBus *EventBus) ClearGlobalHandlers()
func (*EventBus) ClearWidgetHandlers ¶
func (*EventBus) NewSysEvtCh ¶
func (*EventBus) RemoveGlobalHandler ¶
func (*EventBus) RemoveWidgetHandler ¶
func (*EventBus) SendCustomEvent ¶
type EventCustom ¶
type EventCustom struct {
*tcell.EventInterrupt
}
type EventError ¶
type EventError struct {
*tcell.EventError
}
type EventInterrupt ¶
type EventInterrupt struct {
*tcell.EventInterrupt
}
type EventMouse ¶
type EventMouse struct { *tcell.EventMouse Press string }
type EventResize ¶
type EventResize struct {
*tcell.EventResize
}
type EventStream ¶
type EventStream struct { sync.RWMutex Handlers map[string]func(Event) // contains filtered or unexported fields }
func NewEventStream ¶
func NewEventStream() *EventStream
func (*EventStream) Handle ¶
func (es *EventStream) Handle(path string, handler func(Event))
func (*EventStream) Hook ¶
func (es *EventStream) Hook(f func(Event))
func (*EventStream) Init ¶
func (es *EventStream) Init()
func (*EventStream) Loop ¶
func (es *EventStream) Loop()
func (*EventStream) Merge ¶
func (es *EventStream) Merge(name string, ec chan Event)
func (*EventStream) RemoveHandle ¶
func (es *EventStream) RemoveHandle(path string)
func (*EventStream) ResetHandlers ¶
func (es *EventStream) ResetHandlers()
Remove all existing defined Handlers from the map
func (*EventStream) StopLoop ¶
func (es *EventStream) StopLoop()
type WgtInfo ¶
func NewWgtInfo ¶
type WgtMgr ¶
event mixins
func (WgtMgr) AddWgtHandler ¶
func (WgtMgr) ClearWgtHandlers ¶
func (WgtMgr) RmWgtHandler ¶
func (WgtMgr) WgtHandlersHook ¶
Click to show internal directories.
Click to hide internal directories.