Package driver provides the default driver for accessing a screen.



This section is empty.


This section is empty.


func Main

func Main(f func(screen.Screen))

Main is called by the program's main function to run the graphical application.

It calls f on the Screen, possibly in a separate goroutine, as some OS- specific libraries require being on 'the main thread'. It returns when f returns.


This section is empty.


Path Synopsis
gldriver Package gldriver provides an OpenGL driver for accessing a screen.
internal/drawer Package drawer provides functions that help implement screen.Drawer methods.
internal/errscreen Package errscreen provides a stub Screen implementation.
internal/event Package event provides an infinitely buffered double-ended queue of events.
internal/lifecycler Package lifecycler tracks a window's lifecycle state.
internal/swizzle Package swizzle provides functions for converting between RGBA pixel formats.
internal/x11key x11key contains X11 numeric codes for the keyboard and mouse.
mtldriver Package mtldriver provides a Metal driver for accessing a screen.
mtldriver/internal/appkit Package appkit provides access to Apple's AppKit API (
mtldriver/internal/coreanim Package coreanim provides access to Apple's Core Animation API (
windriver Package windriver provides the Windows driver for accessing a screen.
x11driver Package x11driver provides the X11 driver for accessing a screen.