Documentation ¶
Index ¶
- func NewGoMobileDriver() fyne.Driver
- func ShowFileOpenPicker(callback func(fyne.URIReadCloser, error), filter storage.FileFilter)
- func ShowFileSavePicker(callback func(fyne.URIWriteCloser, error), filter storage.FileFilter, ...)
- func ShowFolderOpenPicker(callback func(fyne.ListableURI, error))
- type Configuration
- type ConfiguredDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoMobileDriver ¶
func NewGoMobileDriver() fyne.Driver
NewGoMobileDriver sets up a new Driver instance implemented using the Go Mobile extension and OpenGL bindings.
func ShowFileOpenPicker ¶
func ShowFileOpenPicker(callback func(fyne.URIReadCloser, error), filter storage.FileFilter)
ShowFileOpenPicker loads the native file open dialog and returns the chosen file path via the callback func.
func ShowFileSavePicker ¶
func ShowFileSavePicker(callback func(fyne.URIWriteCloser, error), filter storage.FileFilter, filename string)
ShowFileSavePicker loads the native file save dialog and returns the chosen file path via the callback func.
func ShowFolderOpenPicker ¶
func ShowFolderOpenPicker(callback func(fyne.ListableURI, error))
ShowFolderOpenPicker loads the native folder open dialog and calls back the chosen directory path as a ListableURI.
Types ¶
type Configuration ¶
type Configuration struct {
SystemTheme fyne.ThemeVariant
}
Configuration is the system information about the current device
type ConfiguredDriver ¶
type ConfiguredDriver interface {
SetOnConfigurationChanged(func(*Configuration))
}
ConfiguredDriver is a simple type that allows packages to hook into configuration changes of this driver.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package app lets you write portable all-Go apps for Android and iOS.
|
Package app lets you write portable all-Go apps for Android and iOS. |
event
|
|
key
Package key defines an event for physical keyboard keys.
|
Package key defines an event for physical keyboard keys. |
lifecycle
Package lifecycle defines an event for an app's lifecycle.
|
Package lifecycle defines an event for an app's lifecycle. |
paint
Package paint defines an event for the app being ready to paint.
|
Package paint defines an event for the app being ready to paint. |
size
Package size defines an event for the dimensions, physical resolution and orientation of the app's window.
|
Package size defines an event for the dimensions, physical resolution and orientation of the app's window. |
touch
Package touch defines an event for touch input.
|
Package touch defines an event for touch input. |
Package gl implements Go bindings for OpenGL ES 2.0 and ES 3.0.
|
Package gl implements Go bindings for OpenGL ES 2.0 and ES 3.0. |
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.
|
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps. |
Click to show internal directories.
Click to hide internal directories.