Documentation ¶
Index ¶
- func NewMap(w, h int, win fyne.Window) fyne.CanvasObject
- type Config
- type Map
- func (g *Map) CreateRenderer() fyne.WidgetRenderer
- func (g *Map) DoubleTapped(ev *fyne.PointEvent)
- func (g *Map) DragEnd()
- func (g *Map) Dragged(ev *fyne.DragEvent)
- func (g *Map) Dump(f fyne.URIWriteCloser)
- func (g *Map) GetGridSize() (w int, h int)
- func (g *Map) GetIndex(pos fyne.Position) (i, j int)
- func (g *Map) GetScale() float32
- func (g *Map) Hide()
- func (g *Map) Load(f fyne.URIReadCloser)
- func (g *Map) MinSize() fyne.Size
- func (g *Map) Move(position fyne.Position)
- func (g *Map) OnClear()
- func (g *Map) OnGridChange(gg *grid, pos fyne.Position)
- func (g *Map) OnGridMouseIn(v *grid)
- func (g *Map) OnGridWalkAble(gg *grid)
- func (g *Map) OnPause()
- func (g *Map) OnStart()
- func (g *Map) Position() fyne.Position
- func (g *Map) Refresh()
- func (g *Map) Resize(size fyne.Size)
- func (g *Map) Scrolled(ev *fyne.ScrollEvent)
- func (g *Map) SetEnd(i, j int)
- func (g *Map) SetStart(i, j int)
- func (g *Map) Show()
- func (g *Map) Size() fyne.Size
- func (g *Map) Visible() bool
- type MapRenderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Weight binding.String SecondLimit binding.String Uid string *path_finding.PathFindingConfig OnStart func() OnPause func() OnClear func() Dump func(closer fyne.URIWriteCloser) Load func(fyne.URIReadCloser) }
func (*Config) GetPathFindingConfig ¶
func (cfg *Config) GetPathFindingConfig() (t path_finding.PathFindingType, c path_finding.PathFindingConfig)
type Map ¶
type Map struct { Cfg *Config // contains filtered or unexported fields }
func (*Map) CreateRenderer ¶
func (g *Map) CreateRenderer() fyne.WidgetRenderer
func (*Map) DoubleTapped ¶
func (g *Map) DoubleTapped(ev *fyne.PointEvent)
func (*Map) GetGridSize ¶
func (*Map) OnGridChange ¶
func (g *Map) OnGridChange(gg *grid, pos fyne.Position)
func (*Map) OnGridMouseIn ¶
func (g *Map) OnGridMouseIn(v *grid)
func (*Map) OnGridWalkAble ¶
func (g *Map) OnGridWalkAble(gg *grid)
type MapRenderer ¶
type MapRenderer struct {
*Map
}
func (MapRenderer) Destroy ¶
func (g MapRenderer) Destroy()
func (MapRenderer) Layout ¶
func (g MapRenderer) Layout(size fyne.Size)
func (MapRenderer) Objects ¶
func (g MapRenderer) Objects() (res []fyne.CanvasObject)
Click to show internal directories.
Click to hide internal directories.