event

package
v0.0.0-...-f07ee0b Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDisplayCmd

func BuildDisplayCmd(msg string) tea.Cmd

func BuildFinishRenderToExportCmd

func BuildFinishRenderToExportCmd(msg FinishRenderToExportMsg) tea.Cmd

func BuildLospecRequestCmd

func BuildLospecRequestCmd(msg LospecRequestMsg) tea.Cmd

func BuildLospecResponseCmd

func BuildLospecResponseCmd(msg LospecResponseMsg) tea.Cmd

func BuildStartExportCmd

func BuildStartExportCmd(msg StartExportMsg) tea.Cmd

func ClearDisplayCmd

func ClearDisplayCmd() tea.Msg

func FinishExportingCmd

func FinishExportingCmd() tea.Msg

func InitKeyMap

func InitKeyMap()

func StartAdaptingCmd

func StartAdaptingCmd() tea.Msg

func StartRenderToExportCmd

func StartRenderToExportCmd() tea.Msg

func StartRenderToViewCmd

func StartRenderToViewCmd() tea.Msg

Types

type DisplayMsg

type DisplayMsg string

DisplayMsg could eventually contain a type that indicates what style to use (warning, error, etc.)

type FinishAdaptingMsg

type FinishAdaptingMsg struct {
	Name   string
	Colors color.Palette
}

type FinishExportMsg

type FinishExportMsg bool

type FinishRenderToExportMsg

type FinishRenderToExportMsg struct {
	FilePath     string
	ImgString    string
	ColorsString string
}

type FinishRenderToViewMsg

type FinishRenderToViewMsg struct {
	FilePath     string
	ImgString    string
	ColorsString string
}

type LospecData

type LospecData struct {
	Palettes []struct {
		Colors []string `json:"colors"`
		Title  string   `json:"title"`
	} `json:"palettes"`
	TotalCount int `json:"totalCount"`
}

type LospecRequestMsg

type LospecRequestMsg struct {
	ID   int
	Page int
	URL  string
}

LospecRequestMsg is a url request used to get a list of

type LospecResponseMsg

type LospecResponseMsg struct {
	ID   int
	Page int
	Data LospecData
}

type Map

type Map struct {
	Enter key.Binding
	Nav   key.Binding
	Right key.Binding
	Left  key.Binding
	Up    key.Binding
	Down  key.Binding
	Copy  key.Binding
	Save  key.Binding
	Esc   key.Binding
}
var KeyMap Map

func (Map) FullHelp

func (k Map) FullHelp() [][]key.Binding

func (Map) ShortHelp

func (k Map) ShortHelp() []key.Binding

type StartAdaptingMsg

type StartAdaptingMsg bool

type StartExportMsg

type StartExportMsg struct {
	SourcePath      string
	DestinationPath string
	IsDir           bool
	UseSubDirs      bool
}

type StartRenderToExportMsg

type StartRenderToExportMsg bool

type StartRenderToViewMsg

type StartRenderToViewMsg bool

Jump to

Keyboard shortcuts

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