bind

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyBind

func KeyBind(msg tea.KeyMsg, s Screen) (tea.Model, tea.Cmd)

func MouseBind

func MouseBind(msg tea.MouseMsg, s Screen)

Types

type Screen

type Screen interface {
	SetSave(bool)
	SetShowInputSave(bool)
	IsShowInputSave() bool
	Init() tea.Cmd
	Update(msg tea.Msg) (tea.Model, tea.Cmd)
	View() string
	LoadImage(screenString string)
	LoadFromImage(path string)
	GetPixel(y int, x int) string
	GetPixels() [][]string
	GetDirectory() string
	SetDirectory(string)
	GetWidth() int
	GetHeight() int
	ClearUnsavedPixels()
	AddPixels(pixels ...pixel.Pixel)
	GetConfig() *config.Config
	GetMessage() message.Message
}

Jump to

Keyboard shortcuts

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