Versions in this module Expand all Collapse all v1 v1.2.6 Nov 23, 2023 Changes in this version + type Config interface + GetBackgroundColor func() map[string]int + GetImageSaveDirectory func() string + GetNotificationTime func() int + SetImageSaveDirectory func(directory string) + WithBackground func() bool type Message + SetMessage func(string) type Screen + Height int + SavedPixels [][]string + UnsavedPixels map[string]pixel.Pixel + Width int + func (s *Screen) AddPixels(pixels ...pixel.Pixel) + func (s *Screen) ClearUnsavedPixels() + func (s *Screen) GetConfig() *config.Config + func (s *Screen) GetDirectory() string + func (s *Screen) GetHeight() int + func (s *Screen) GetMessage() message.Message + func (s *Screen) GetPixel(y int, x int) string + func (s *Screen) GetPixels() [][]string + func (s *Screen) GetWidth() int + func (s *Screen) IsShowInputSave() bool + func (s *Screen) LoadFromImage(path string) + func (s *Screen) SetConfig(c config.Config) + func (s *Screen) SetDirectory(directory string) + func (s *Screen) SetSave(save bool) + func (s *Screen) SetShowInputSave(showInputSave bool) v1.2.5 Oct 14, 2023 v1.2.4 Aug 13, 2023 v1.2.3 Aug 6, 2023 Changes in this version + var Pixels [][]string + type Coord struct + X int + Y int v1.2.2 Aug 5, 2023 Changes in this version type Screen + ShowInputSave bool v1.2.1 Aug 5, 2023 v1.1.1 Jul 19, 2023 Changes in this version + const Dot + const ECircle + const ESquare + const Empty + const FCircle + const FSquare + const GLine + const HelpWidth + const MenuShapeWidth + const MenuSymbolColorWidth + const None + const Pointer + const VLine + var Colors = map[int]string + func ClearMenu(s *Screen, screen [][]string, width int) [][]string + func ClearMessage(screen [][]string, width int, height int) [][]string + func DrawCursor(s *Screen, screen [][]string) [][]string + func DrawHelpMenu(s *Screen, screen [][]string) [][]string + func DrawMsg(messages []Message, width int, screen [][]string) [][]string + func DrawString(X int, Y int, val string, screen [][]string) [][]string + func DrawSymbolColorMenu(s *Screen, screen [][]string) [][]string + func FileList(s *Screen, screen [][]string, path string) [][]string + func KeyBind(msg tea.KeyMsg, s *Screen) (tea.Model, tea.Cmd) + func MouseBind(msg tea.MouseMsg, s *Screen) + func SaveImage(image string, s *Screen) + type Cursor struct + Brush cursorType + Color map[string]int + Height int + Store Store + Symbol string + Width int + type Message struct + type Pixel struct + Symbol string + X int + Y int + type Screen struct + Columns int + Cursor Cursor + Dir string + File string + FileList map[int]string + FileListWidth int + Input string + InputColor string + InputLock bool + MenuType menuType + MessageWidth int + Messages []Message + Pixels []Pixel + Rows int + Save bool + X int + Y int + func (s *Screen) Init() tea.Cmd + func (s *Screen) LoadImage(screenStrong string) + func (s *Screen) SetMessage(text string) + func (s *Screen) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (s *Screen) View() string + type Shape struct + type Store struct + Brush cursorType + Symbol string