view

package
v0.0.0-...-c6ed526 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPosition

func FormatPosition(x, y int) string

FormatPosition is a function that will format the position of the cell in the board

func IndentifyClick

func IndentifyClick(mouseBtn desktop.MouseButton, board *model.Board, pos string)

IndentifyClick is a function that will identify the type of click

func Initial

func Initial()

func InitialBack

func InitialBack(window fyne.Window)

func InitialGameScreen

func InitialGameScreen(window fyne.Window)

func InitialNewGameScreen

func InitialNewGameScreen(window fyne.Window)

func LeftClick

func LeftClick(board *model.Board, pos string)

LeftClick is the function that will be called when the user clicks on a cell

func NewMainContent

func NewMainContent(header, footer *fyne.Container) *fyne.Container

NewMainContent is a function that will create the main content of the screen

func NewText

func NewText(text string, size float32, alignment fyne.TextAlign, textStyle fyne.TextStyle) *canvas.Text

NewText returns a new Text implementation

func RightClick

func RightClick(board *model.Board, pos string)

RightClick is a function that handles the right click event

Types

type BeutifulTheme

type BeutifulTheme struct{}

func (BeutifulTheme) Color

func (BeutifulTheme) Color(c fyne.ThemeColorName, v fyne.ThemeVariant) color.Color

func (BeutifulTheme) Font

func (BeutifulTheme) Font(s fyne.TextStyle) fyne.Resource

func (BeutifulTheme) Icon

func (BeutifulTheme) Icon(n fyne.ThemeIconName) fyne.Resource

func (BeutifulTheme) Size

func (BeutifulTheme) Size(s fyne.ThemeSizeName) float32

type Game

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

type InitialScreen

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

type NewGame

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

Jump to

Keyboard shortcuts

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