gui

package
v0.0.0-...-c407878 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Icon

func Icon() fyne.Resource

func SetupGUI

func SetupGUI(window fyne.Window)

Types

type FileHandler

type FileHandler interface {
	LoadImage(path string) (image.Image, error)
	SaveImage(img image.Image, path, format string, cfg *config.Config) error
	CreateDir(path string) error
	ReadDir(path string) ([]os.DirEntry, error)
}

type GUI

type GUI struct {
	// contains filtered or unexported fields
}

func NewGUI

func NewGUI(window fyne.Window, cfg *config.Config, fileHandler FileHandler) *GUI

func (*GUI) Setup

func (g *GUI) Setup()

type GUIComponents

type GUIComponents struct {
	// contains filtered or unexported fields
}

type Locale

type Locale struct {
	LanguageLabel          string
	WatermarkLabel         string
	ImageDirLabel          string
	FormatLabel            string
	QualityLabel           string
	WebSizeHint            string
	WidthLabel             string
	HeightLabel            string
	TargetSizeLabel        string
	WatermarkModeLabel     string
	WatermarkPlaceholder   string
	ImageDirPlaceholder    string
	ProcessButton          string
	CurrentFileLabel       string
	ProcessingDone         string
	BrowseButton           string
	BrowseFolderButton     string
	ErrorTitle             string
	NoWatermarkOrFolder    string
	FailedSelectWatermark  string
	InvalidFile            string
	FailedSelectFolder     string
	InvalidFolder          string
	FailedInitProcessor    string
	ProcessingFailed       string
	WidthExceedsWatermark  string
	HeightExceedsWatermark string
}

Jump to

Keyboard shortcuts

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