models

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.0.5

type Config struct {
	Delay   time.Duration
	Shuffle bool
}

type ZoomableImage

type ZoomableImage struct {
	Image *canvas.Image

	Scale      float32
	OffsetX    float32
	OffsetY    float32
	Rotation   int
	Brightness float32
	Contrast   float32
	// contains filtered or unexported fields
}

func FromString added in v0.0.5

func FromString(str string, image *canvas.Image, w fyne.Window) *ZoomableImage

func NewZoomableImage

func NewZoomableImage(image *canvas.Image, w fyne.Window) *ZoomableImage

func (*ZoomableImage) AdjustBrightnessAndContrast added in v0.0.5

func (z *ZoomableImage) AdjustBrightnessAndContrast(db, dc float32)

func (*ZoomableImage) HasChanged added in v0.0.5

func (z *ZoomableImage) HasChanged() bool

func (*ZoomableImage) Move

func (z *ZoomableImage) Move(dx, dy float32)

func (*ZoomableImage) Refresh

func (z *ZoomableImage) Refresh()

func (*ZoomableImage) Reset

func (z *ZoomableImage) Reset()

func (*ZoomableImage) ResetBrightnessContrast added in v0.0.5

func (z *ZoomableImage) ResetBrightnessContrast()

func (*ZoomableImage) ResetRotation added in v0.0.5

func (z *ZoomableImage) ResetRotation()

func (*ZoomableImage) ResetZoomAndPan added in v0.0.5

func (z *ZoomableImage) ResetZoomAndPan()

func (*ZoomableImage) Rotate added in v0.0.5

func (z *ZoomableImage) Rotate(direction int)

func (*ZoomableImage) Set added in v0.0.5

func (z *ZoomableImage) Set(str string)

func (*ZoomableImage) ToString added in v0.0.5

func (z *ZoomableImage) ToString() string

func (*ZoomableImage) Zoom

func (z *ZoomableImage) Zoom(dz float32)

Jump to

Keyboard shortcuts

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