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 ¶
func HasStarted() bool
func Run ¶
func Run(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 Start ¶
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.