ui

package
v0.0.0-...-6828d5b Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HEIGHT int
View Source
var WIDTH int

Functions

This section is empty.

Types

type UI

type UI struct {
	// contains filtered or unexported fields
}

func NewUI

func NewUI(board *chess.Board) *UI

func (*UI) Draw

func (u *UI) Draw(screen *ebiten.Image)

func (*UI) DrawPieces

func (u *UI) DrawPieces(screen *ebiten.Image)

func (*UI) DrawSquares

func (u *UI) DrawSquares(screen *ebiten.Image)

func (*UI) DrawTextBottom

func (u *UI) DrawTextBottom(txt string, screen *ebiten.Image)

func (*UI) Layout

func (u *UI) Layout(outsideWidth, outsideHeight int) (int, int)

func (*UI) RecalcCanMove

func (u *UI) RecalcCanMove()

func (*UI) Update

func (u *UI) Update() error

Jump to

Keyboard shortcuts

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