Documentation ¶
Overview ¶
Package appkeys provides a widget which responds to keyboard input.
Index ¶
- func Render(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func RenderSize(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- func SubWidgetSize(w gowid.ICompositeWidget, size gowid.IRenderSize, focus gowid.Selector, ...) gowid.IRenderSize
- func UserInput(w IAppInput, ev interface{}, size gowid.IRenderSize, focus gowid.Selector, ...) bool
- type IAppInput
- type IAppKeys
- type IAppMouse
- type IWidget
- type KeyInputFn
- type KeyWidget
- type MouseInputFn
- type MouseWidget
- type Options
- type Widget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderSize ¶
func RenderSize(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
func SubWidgetSize ¶
func SubWidgetSize(w gowid.ICompositeWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize
Types ¶
type IAppInput ¶
type IAppInput interface { gowid.IComposite ApplyBefore() bool }
type IWidget ¶
type IWidget interface { gowid.ICompositeWidget }
type MouseInputFn ¶
type MouseInputFn func(ev *tcell.EventMouse, app gowid.IApp) bool
type MouseWidget ¶
type MouseWidget struct { *Widget // contains filtered or unexported fields }
func NewMouse ¶
func NewMouse(inner gowid.IWidget, fn MouseInputFn, opts ...Options) *MouseWidget
func (*MouseWidget) MouseInput ¶
func (w *MouseWidget) MouseInput(k *tcell.EventMouse, app gowid.IApp) bool
func (*MouseWidget) UserInput ¶
func (w *MouseWidget) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool
type Widget ¶
func (*Widget) ApplyBefore ¶
func (*Widget) SubWidgetSize ¶
func (w *Widget) SubWidgetSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize
Click to show internal directories.
Click to hide internal directories.