mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user