Documentation ¶
Index ¶
- func APIKeyEnteredCmd(key string) func() tea.Msg
- func APILanguagesReceivedCmd() func() tea.Msg
- func APITranslationReceivedCmd() func() tea.Msg
- func ContentSizeCmd() func() tea.Msg
- func FormalityBtnSelectedCmd() func() tea.Msg
- func FormalitySelectedCmd(formality string) func() tea.Msg
- func InsertModeEnteredCmd() func() tea.Msg
- func InsertModeExitedCmd() func() tea.Msg
- func SrcLangBtnSelectedCmd() func() tea.Msg
- func SrcLangSelectedCmd(language deeplapi.Language) func() tea.Msg
- func StartLoadingCmd() func() tea.Msg
- func StopLoadingCmd() func() tea.Msg
- func TarLangBtnSelectedCmd() func() tea.Msg
- func TarLangSelectedCmd(language deeplapi.Language) func() tea.Msg
- func ThrowErr(err error) func() tea.Msg
- func TranslateBtnSelectedCmd() func() tea.Msg
- type APIKeyEnteredMsg
- type APILanguagesReceivedMsg
- type APITranslationReceivedMsg
- type ContentSizeMsg
- type Err
- type FormalityBtnSelectedMsg
- type FormalitySelectedMsg
- type InsertModeEnteredMsg
- type InsertModeExitedMsg
- type SrcLangBtnSelectedMsg
- type SrcLangSelectedMsg
- type StartLoadingMsg
- type StopLoadingMsg
- type TarLangBtnSelectedMsg
- type TarLangSelectedMsg
- type TranslateBtnSelectedMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKeyEnteredCmd ¶
Command to trigger APIKeyEntered
func APILanguagesReceivedCmd ¶
Command to trigger APILanguagesReceived
func APITranslationReceivedCmd ¶
Command to trigger APITranslationReceived
func FormalityBtnSelectedCmd ¶
Command to trigger FormalityBtnSelected
func FormalitySelectedCmd ¶
Command to trigger FormalitySelected
func InsertModeEnteredCmd ¶
Command to trigger insert mode
func SrcLangBtnSelectedCmd ¶
Command to trigger SrcLangBtnSelected
func SrcLangSelectedCmd ¶
Command to trigger SrcLangSelected
func TarLangBtnSelectedCmd ¶
Command to trigger TarLangBtnSelected
func TarLangSelectedCmd ¶
Command to trigger TarLangSelected
func TranslateBtnSelectedCmd ¶
Command to trigger TranslateBtnSelected
Types ¶
type APIKeyEnteredMsg ¶
type APIKeyEnteredMsg struct {
Key string
}
Describe the action that the user entered an API key
type APILanguagesReceivedMsg ¶
type APILanguagesReceivedMsg struct{}
Previously requested available languages have been received
type APITranslationReceivedMsg ¶
type APITranslationReceivedMsg struct{}
Previously requested translation has been received
type ContentSizeMsg ¶
type ContentSizeMsg struct{}
Describes that the size available to a view changed Difference to tea.WindowSizeMsg: this one contains the screen height substracted by header and footer height, and the screen width substracted by global margins The new size is accessible to the context.
type FormalityBtnSelectedMsg ¶
type FormalityBtnSelectedMsg struct{}
Describes the action of the user selecting the formality button
type FormalitySelectedMsg ¶
type FormalitySelectedMsg struct {
Formality string
}
Describes the action of the user selecting a formality for the translation
type InsertModeEnteredMsg ¶
type InsertModeEnteredMsg struct{}
Describes the action of the user entering insert mode All navigational inputs shall be ignored for the time being
type InsertModeExitedMsg ¶
type InsertModeExitedMsg struct{}
Describes the action of the user exiting insert mode
type SrcLangBtnSelectedMsg ¶
type SrcLangBtnSelectedMsg struct{}
Describes the action of the user selecting the source language button
type SrcLangSelectedMsg ¶
Describes the action the of the user selecting a source language
type StartLoadingMsg ¶
type StartLoadingMsg struct{}
Describes that a loading process started in the background
type StopLoadingMsg ¶
type StopLoadingMsg struct{}
Describes that a loading process stopped in the background
type TarLangBtnSelectedMsg ¶
type TarLangBtnSelectedMsg struct{}
Describes the action of the user selecting the target language button
type TarLangSelectedMsg ¶
Describes the action of the user selecting a target language
type TranslateBtnSelectedMsg ¶
type TranslateBtnSelectedMsg struct{}
Describes the action of the user selecting the translate button