Documentation ¶
Overview ¶
Package gimain provides a Main function that encapsulates the standard oswin driver main function, and also ensures that standard sub-packages that are required for typical gi gui usage are automatically included
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugEnumSizes ¶
func DebugEnumSizes()
func HasStarted ¶ added in v0.9.7
func HasStarted() bool
func Main ¶
func Main(mainrun func())
Main is run in a main package to start the GUI driver / event loop, and call given function as the effective "main" function.
func Quit ¶ added in v0.9.7
func Quit()
Quit can be called to close the main thread started by Start()
func Start ¶ added in v0.9.7
func Start()
Start is called via a library to start the driver -- dynamic libraries in Go do not run in the main thread, so this needs to be called after loading the library. This call will never return, so another thread must be launched prior to calling this in the main thread. That thread can call gimain.Quit() to close this main thread.
Types ¶
This section is empty.