app

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: BSD-3-Clause Imports: 17 Imported by: 1,659

Documentation

Overview

Package app provides app implementations for working with Fyne graphical interfaces. The fastest way to get started is to call app.New() which will normally load a new desktop application. If the "ci" tag is passed to go (go run -tags ci myapp.go) it will run an in-memory application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() fyne.App

New returns a new application instance with the default driver and no unique ID

func NewWithID

func NewWithID(id string) fyne.App

NewWithID returns a new app instance using the appropriate runtime driver. The ID string should be globally unique to this app.

Types

type SettingsSchema

type SettingsSchema struct {
	// these items are used for global settings load
	ThemeName    string  `json:"theme"`
	Scale        float32 `json:"scale"`
	PrimaryColor string  `json:"primary_color"`
}

SettingsSchema is used for loading and storing global settings

func (*SettingsSchema) StoragePath

func (sc *SettingsSchema) StoragePath() string

StoragePath returns the location of the settings storage

Jump to

Keyboard shortcuts

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