wid

package
v0.0.0-...-1ab0d2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFocus

func FilterFocus(parent, child []string) []string

func WithFocus

func WithFocus(a gowid.IApp, ids []string) gowid.IApp

func WithP2PContext

func WithP2PContext(a gowid.IApp, palette map[string]gowid.ICellStyler, clickTargets gowid.ClickTargets, mouseState, lastMouseState gowid.MouseState) gowid.IApp

Types

type ICompositeMultipleFocus

type ICompositeMultipleFocus interface {
	gowid.ICompositeMultiple
	IFocus
}

type IFocus

type IFocus interface {
	Focus(id string) int
	SetFocus(id string, i int)
	ReverseFocus() [][]string
}

type IP2PApp

type IP2PApp interface {
	IDs() []string
	FocusPalette(id string) (string, gowid.ICellStyler)
	SetClickTarget(k tcell.ButtonMask, w gowid.IIdentityWidget) bool
	ClickTarget(func(tcell.ButtonMask, gowid.IIdentityWidget))
	GetMouseState() gowid.MouseState
	GetLastMouseState() gowid.MouseState
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL