Documentation ¶
Index ¶
- func FormatPosition(x, y int) string
- func IndentifyClick(mouseBtn desktop.MouseButton, board *model.Board, pos string)
- func Initial()
- func InitialBack(window fyne.Window)
- func InitialGameScreen(window fyne.Window)
- func InitialNewGameScreen(window fyne.Window)
- func LeftClick(board *model.Board, pos string)
- func NewMainContent(header, footer *fyne.Container) *fyne.Container
- func NewText(text string, size float32, alignment fyne.TextAlign, textStyle fyne.TextStyle) *canvas.Text
- func RightClick(board *model.Board, pos string)
- type BeutifulTheme
- type Game
- type InitialScreen
- type NewGame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatPosition ¶
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 InitialBack ¶
func InitialBack(window fyne.Window)
func InitialGameScreen ¶
func InitialGameScreen(window fyne.Window)
func InitialNewGameScreen ¶
func InitialNewGameScreen(window fyne.Window)
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 ¶
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 InitialScreen ¶
type InitialScreen struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.