Documentation ¶
Index ¶
- Constants
- Variables
- type AnimateMenu
- type DoubleImageMenu
- type Editor
- type ImageMenu
- func (i *ImageMenu) CmdLine() string
- func (i *ImageMenu) CpcImage() *canvas.Image
- func (me *ImageMenu) ExportDialog(cfg *config.MartineConfig, ...)
- func (me *ImageMenu) ExportImage(w fyne.Window, getCfg func(checkOriginalImage bool) *config.MartineConfig)
- func (me *ImageMenu) GetConfig(checkOriginalImage bool) *config.MartineConfig
- func (i *ImageMenu) GetHeight() (int, string, error)
- func (i *ImageMenu) GetWidth() (int, string, error)
- func (i *ImageMenu) Height() *widget.Entry
- func (me *ImageMenu) NewConfig(checkOriginalImage bool) *config.MartineConfig
- func (me *ImageMenu) NewFormatRadio() *widget.Select
- func (i *ImageMenu) NewImportButton(modeSelection *widget.Select, callBack func()) *widget.Button
- func (me *ImageMenu) OriginalImage() *canvas.Image
- func (i *ImageMenu) OriginalImagePath() string
- func (i *ImageMenu) Palette() color.Palette
- func (i *ImageMenu) PaletteImage() *canvas.Image
- func (i *ImageMenu) SetCpcImage(img image.Image)
- func (me *ImageMenu) SetImagePalette(i image.Image, p color.Palette)
- func (i *ImageMenu) SetOrderedPalette(p color.Palette)
- func (me *ImageMenu) SetOriginalImage(img image.Image)
- func (i *ImageMenu) SetOriginalImagePath(path fyne.URI)
- func (i *ImageMenu) SetPalette(p color.Palette)
- func (i *ImageMenu) SetPaletteImage(img image.Image)
- func (i *ImageMenu) SetWindow(w fyne.Window)
- func (i *ImageMenu) Width() *widget.Entry
- type MergedImageMenu
- type SpriteMenu
- func (s *SpriteMenu) CmdLine() string
- func (s *SpriteMenu) ImportSprite(win fyne.Window) *widget.Button
- func (s *SpriteMenu) OriginalBoard() *canvas.Image
- func (s *SpriteMenu) Palette() color.Palette
- func (s *SpriteMenu) PaletteImage() *canvas.Image
- func (s *SpriteMenu) SetOrderedPalette(p color.Palette)
- func (s *SpriteMenu) SetOriginalBoard(img image.Image)
- func (s *SpriteMenu) SetOriginalPalette(img image.Image)
- func (s *SpriteMenu) SetPalette(p color.Palette)
- func (s *SpriteMenu) SetPaletteImage(img image.Image)
- type TilemapMenu
Constants ¶
View Source
const ( AnimateWidthSize float32 = 350. AnimateHeightSize float32 = 250. )
Variables ¶
View Source
var SpriteSize float32 = 80.
View Source
var TileSize float32 = 20.
Functions ¶
This section is empty.
Types ¶
type AnimateMenu ¶
type AnimateMenu struct { *ImageMenu Originalmages []*canvas.Image AnimateImages *w.ImageSelectionTable DeltaCollection []*transformation.DeltaCollection InitialAddress *widget.Entry RawImages [][]byte OneLine bool OneRow bool ImageToRemoveIndex int ExportVersion animate.DeltaExportFormat }
func NewAnimateMenu ¶
func NewAnimateMenu() *AnimateMenu
type DoubleImageMenu ¶
type DoubleImageMenu struct { LeftImage *ImageMenu RightImage *ImageMenu ResultImage *MergedImageMenu }
func NewDoubleImageMenu ¶
func NewDoubleImageMenu() *DoubleImageMenu
func (*DoubleImageMenu) CmdLine ¶
func (d *DoubleImageMenu) CmdLine() string
type ImageMenu ¶
type ImageMenu struct { Cfg *config.MartineConfig Data []byte Downgraded *image.NRGBA ResizeAlgoNumber int UsePalette bool CmdLineGenerate string Edited bool // contains filtered or unexported fields }
func NewImageMenu ¶
func NewImageMenu() *ImageMenu
func (*ImageMenu) ExportDialog ¶
func (me *ImageMenu) ExportDialog(cfg *config.MartineConfig, getCfg func(checkOriginalImage bool) *config.MartineConfig)
nolint: funlen
func (*ImageMenu) ExportImage ¶
func (me *ImageMenu) ExportImage(w fyne.Window, getCfg func(checkOriginalImage bool) *config.MartineConfig)
nolint:funlen, gocognit
func (*ImageMenu) GetConfig ¶
func (me *ImageMenu) GetConfig(checkOriginalImage bool) *config.MartineConfig
func (*ImageMenu) NewConfig ¶
func (me *ImageMenu) NewConfig(checkOriginalImage bool) *config.MartineConfig
nolint: funlen
func (*ImageMenu) NewFormatRadio ¶
func (*ImageMenu) NewImportButton ¶
nolint:funlen, gocognit
func (*ImageMenu) OriginalImage ¶
func (*ImageMenu) OriginalImagePath ¶
func (*ImageMenu) PaletteImage ¶
func (*ImageMenu) SetCpcImage ¶
func (*ImageMenu) SetImagePalette ¶
func (*ImageMenu) SetOrderedPalette ¶
func (*ImageMenu) SetOriginalImage ¶
func (*ImageMenu) SetOriginalImagePath ¶
func (i *ImageMenu) SetOriginalImagePath(path fyne.URI)
func (*ImageMenu) SetPalette ¶
func (*ImageMenu) SetPaletteImage ¶
type MergedImageMenu ¶
type MergedImageMenu struct { CpcLeftImage *canvas.Image CpcRightImage *canvas.Image CpcResultImage *canvas.Image LeftPalette color.Palette RightPalette color.Palette LeftPaletteImage *canvas.Image RightPaletteImage *canvas.Image Data []byte PaletteImage *canvas.Image CmdLineGenerate string Path string EgxType int Cfg *config.MartineConfig }
func NewMergedImageMenu ¶
func NewMergedImageMenu() *MergedImageMenu
func (*MergedImageMenu) CmdLine ¶
func (m *MergedImageMenu) CmdLine() string
type SpriteMenu ¶
type SpriteMenu struct { Cfg *config.MartineConfig FilePath string SpritesData [][][]byte OriginalImages *w.ImageTable SpritesCollection [][]*image.NRGBA SpriteColumns int SpriteRows int UsePalette bool CmdLineGenerate string // contains filtered or unexported fields }
func NewSpriteMenu ¶
func NewSpriteMenu() *SpriteMenu
func (*SpriteMenu) CmdLine ¶
func (s *SpriteMenu) CmdLine() string
func (*SpriteMenu) ImportSprite ¶
func (s *SpriteMenu) ImportSprite(win fyne.Window) *widget.Button
func (*SpriteMenu) OriginalBoard ¶
func (s *SpriteMenu) OriginalBoard() *canvas.Image
func (*SpriteMenu) Palette ¶
func (s *SpriteMenu) Palette() color.Palette
func (*SpriteMenu) PaletteImage ¶
func (s *SpriteMenu) PaletteImage() *canvas.Image
func (*SpriteMenu) SetOrderedPalette ¶
func (s *SpriteMenu) SetOrderedPalette(p color.Palette)
func (*SpriteMenu) SetOriginalBoard ¶
func (s *SpriteMenu) SetOriginalBoard(img image.Image)
func (*SpriteMenu) SetOriginalPalette ¶
func (s *SpriteMenu) SetOriginalPalette(img image.Image)
func (*SpriteMenu) SetPalette ¶
func (s *SpriteMenu) SetPalette(p color.Palette)
func (*SpriteMenu) SetPaletteImage ¶
func (s *SpriteMenu) SetPaletteImage(img image.Image)
type TilemapMenu ¶
type TilemapMenu struct { *ImageMenu Result *transformation.AnalyzeBoard TileImages *w.ImageTable ExportZigzag bool Historic *sprite.TilesHistorical Col int Row int // contains filtered or unexported fields }
func NewTilemapMenu ¶
func NewTilemapMenu() *TilemapMenu
func (*TilemapMenu) CmdLine ¶
func (i *TilemapMenu) CmdLine() string
func (*TilemapMenu) CurrentTile ¶
func (tm *TilemapMenu) CurrentTile() transformation.Tile
func (*TilemapMenu) ResetExport ¶
func (tm *TilemapMenu) ResetExport()
func (*TilemapMenu) SetNewTilesImages ¶
func (me *TilemapMenu) SetNewTilesImages(tiles [][]image.Image)
func (*TilemapMenu) TileImage ¶
func (me *TilemapMenu) TileImage() image.Image
func (*TilemapMenu) TileSelected ¶
func (me *TilemapMenu) TileSelected(row, col int)
Click to show internal directories.
Click to hide internal directories.