context

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgramContext

type ProgramContext struct {
	Api                            *deeplapi.DeeplAPI
	Keys                           keys.KeyMap
	ScreenWidth, ScreenHeight      int // Size of entire screen
	ContentWidth, ContentHeight    int // Size of the space that is available to a view
	Styles                         *styles.Styles
	SourceLanguage, TargetLanguage *deeplapi.Language
	SourceText                     string
	Formality                      string
	TranslationResult              *deeplapi.TranslateResp
	AvailableLanguages             utils.AvailableLanguages
	InsertMode                     bool
}

func New

func New() *ProgramContext

Jump to

Keyboard shortcuts

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