stringui

package
v0.0.0-...-df43766 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeftRightCenter

type LeftRightCenter struct{}

func (*LeftRightCenter) Layout

func (l *LeftRightCenter) Layout(objects []fyne.CanvasObject, containerSize fyne.Size)

func (*LeftRightCenter) MinSize

func (l *LeftRightCenter) MinSize(objects []fyne.CanvasObject) fyne.Size

type MinSizeLayout

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

func (*MinSizeLayout) Layout

func (l *MinSizeLayout) Layout(objects []fyne.CanvasObject, containerSize fyne.Size)

func (*MinSizeLayout) MinSize

func (l *MinSizeLayout) MinSize(objects []fyne.CanvasObject) fyne.Size

type SliderWithLabel

type SliderWithLabel struct {
	*widget.Slider
	// contains filtered or unexported fields
}

func NewSliderWithLabel

func NewSliderWithLabel(label, format string, min, max, step, start float64) SliderWithLabel

func (SliderWithLabel) Container

func (s SliderWithLabel) Container() *fyne.Container

func (SliderWithLabel) Get

func (s SliderWithLabel) Get() (float64, error)

type StringerApp

type StringerApp struct {
	fyne.App
	Window         fyne.Window
	FileOpenDialog *dialog.FileDialog
	FileSaveDialog *dialog.FileDialog
	Widgets        struct {
		Lines             SliderWithLabel
		Darkness          SliderWithLabel
		Erase             SliderWithLabel
		Resolution        SliderWithLabel
		Pins              SliderWithLabel
		OpenButton        *widget.Button
		RecalculateButton *widget.Button
		SaveButton        *widget.Button
		ProgressBar       *widget.ProgressBar
		LeftImage         *canvas.Image
		RightImage        *canvas.Image
	}
	State struct {
		Calculating         bool
		CancelRecalculation chan struct{}
		CompletedLines      int
		TargetImages        []*image.RGBA
		ResultImages        []*image.RGBA
		Instructions        []int
		Lengths             []float64
	}
	Options struct {
		ImageDisplaySize int
	}
}

func NewStringerApp

func NewStringerApp() (s *StringerApp)

func (*StringerApp) Cancel

func (s *StringerApp) Cancel()

func (*StringerApp) LinesVariants

func (s *StringerApp) LinesVariants() int

func (*StringerApp) Recalculate

func (s *StringerApp) Recalculate()

func (*StringerApp) ShowAndRun

func (s *StringerApp) ShowAndRun()

Jump to

Keyboard shortcuts

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