backend

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirectoryChangedEventName    string = "DirectoryChanged"
	GenericErrorEventName        string = "GenericError"
	ImageResizeStartedEventName  string = "ImageResizeStarted"
	ImageResizeSuccessEventName  string = "ImageResizeSuccess"
	ImageResizeFailedEventName   string = "ImageResizeFailed"
	ResizeBatchStartedEventName  string = "ResizeBatchStarted"
	ResizeBatchFinishedEventName string = "ResizeBatchFinished"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Resizer

type Resizer struct {
	Runtime *wails.Runtime
}

func NewResizer

func NewResizer() *Resizer

NewResizer returns an instance of the Resizer

func (*Resizer) ChooseDirectory

func (r *Resizer) ChooseDirectory() error

ChooseDirectory opens up a directory dialog and fires an event containing the allowed files from the chosen directory

func (*Resizer) ResizeImages

func (r *Resizer) ResizeImages(inputDir, outputDir string, maxWidth, maxHeight int) error

ResizeImages resizes all allowed image extensions within a given directory

func (*Resizer) WailsInit

func (r *Resizer) WailsInit(runtime *wails.Runtime) error

WailsInit sets the Wails runtime

Jump to

Keyboard shortcuts

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