controller

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(ui CoreUI) *Controller

func (*Controller) ExportDataset

func (c *Controller) ExportDataset(dest string)

func (*Controller) GetImagePaths

func (c *Controller) GetImagePaths(binID int) []string

func (*Controller) GetPreview

func (c *Controller) GetPreview(path string) image.Image

Getthumbnail to be used by controller clients and retrieve the preview from the in memory cache

func (*Controller) GetThumbnail

func (c *Controller) GetThumbnail(path string) image.Image

Getthumbnail to be used by controller clients and retrieve the thumbnail from the in memory cache

func (*Controller) LoadDataset

func (c *Controller) LoadDataset(path string)

func (*Controller) MoveImages

func (c *Controller) MoveImages(paths []string, sourceID, destID int)

func (*Controller) UpdatePreview

func (c *Controller) UpdatePreview(path string)

type CoreUI

type CoreUI interface {
	ShowProgressDialog(msg string)
	SetProgress(progress float64, f string)
	ReloadBin(id int)
	ShowErrorDialog(err error)
	HideProgressDialog()
	UpdatePreview(i image.Image, path string)
	GetBinCount() int
	LoadContent()
}

Jump to

Keyboard shortcuts

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