ui/app: add package documentation and document Main

Split Main into the common Main function and platform specific
main functions.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-09 21:34:29 +02:00
parent 87f8fd4152
commit e5738481f8
8 changed files with 22 additions and 6 deletions
+8
View File
@@ -134,6 +134,14 @@ func DataDir() (string, error) {
return dataDir()
}
// Main must be called from the a program's main function.
// Calling Main is necessary because some operating systems
// require control of the main thread of the program for
// running user interfaces.
func Main() {
main()
}
// Config implements the ui.Config interface.
type Config struct {
// Device pixels per dp.