layers

package
v0.0.0-...-be438f9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Layers = map[int]*Layer{}

Functions

func Add

func Add()

func BaseLayer

func BaseLayer()

func Hide

func Hide()

func LoadImage

func LoadImage()

func ReOrder

func ReOrder()

func Show

func Show()

Types

type DrawScape

type DrawScape struct {
	widget.BaseWidget
	Img       *canvas.Image
	Bounds    image.Rectangle
	Selection image.Rectangle
}

func NewDrawScape

func NewDrawScape(img image.Image) *DrawScape

func (*DrawScape) CreateRenderer

func (ds *DrawScape) CreateRenderer() fyne.WidgetRenderer

func (*DrawScape) GetSelection

func (ds *DrawScape) GetSelection()

func (*DrawScape) Tapped

func (ds *DrawScape) Tapped(pe *fyne.PointEvent)

func (*DrawScape) TappedSecondary

func (ds *DrawScape) TappedSecondary(pe *fyne.PointEvent)

type Layer

type Layer struct {
	ID      string          `json:"id"`
	Name    string          `json:"name"`
	Order   int             `json:"order"`
	Bounds  image.Rectangle `json:"bounds"`
	Display bool            `json:"display"`
	Image   image.Image     `json:"image_b64"`
	Anchor  image.Point     `json:"anchor"`
}

func (*Layer) GetWidget

func (l *Layer) GetWidget() (layerContainer *fyne.Container)

Jump to

Keyboard shortcuts

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