models

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZoomableImage

type ZoomableImage struct {
	Image *canvas.Image

	Scale   float32
	OffsetX float32
	OffsetY float32
	// contains filtered or unexported fields
}

func NewZoomableImage

func NewZoomableImage(image *canvas.Image) *ZoomableImage

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) 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