src

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PastCity1, PastCity2   string // последние выбранные города
	СколькоДиаграммСделано int
	SaveRequest            bool
)
View Source
var (
	A fyne.App    // приложение
	W fyne.Window // главное окно

	ScreenWidth, ScreenHeight int

	T *userTheme // текущая тема

)

Functions

func Content

func Content() fyne.CanvasObject

func GetScreenHeight

func GetScreenHeight() (int, int)

Получение разрешения экрана

func IsErr

func IsErr(err error)

Обработка

func LoadCache

func LoadCache()

Загрузить кэш запросов

func LoadCountOfCompletedDiagrams

func LoadCountOfCompletedDiagrams() int

Загрузить количество полученных диаграм

func LoadLastCities

func LoadLastCities() (c1, c2 string)

Загрузить из preferences города, маршруты между которыми запрашивались в последний раз

func LoadTheme

func LoadTheme()

Загрузить тему из preferences

func SaveTheme

func SaveTheme()

Сохранить тему в preferences

Types

This section is empty.

Jump to

Keyboard shortcuts

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