package app
import "fyne.io/fyne/app"
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 ¶
- func New() fyne.App
- func NewAppWithDriver(d fyne.Driver, id string) fyne.App
- func NewWithID(id string) fyne.App
- type SettingsSchema
Functions ¶
func New ¶
New returns a new application instance with the default driver and no unique ID
func NewAppWithDriver ¶
NewAppWithDriver initialises a new Fyne application using the specified driver and returns a handle to that App. The id should be globally unique to this app Built in drivers are provided in the "driver" package.
Deprecated: Developers should not specify a driver manually but use NewAppWithID()
func NewWithID ¶
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
Source Files ¶
app.go app_gl.go app_other.go app_standard.go preferences.go preferences_other.go settings.go settings_desktop.go storage.go
- Version
- v1.4.0-rc2
- Published
- Oct 29, 2020
- Platform
- js/wasm
- Imports
- 17 packages
- Last checked
- 5 minutes ago –
Tools for package owners.