exp: golang.org/x/exp/shiny/driver Index | Files | Directories

package driver

import "golang.org/x/exp/shiny/driver"

Package driver provides the default driver for accessing a screen.


Package Files

driver.go driver_x11.go

func Main Uses

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.


gldriverPackage gldriver provides an OpenGL driver for accessing a screen.
internal/drawerPackage drawer provides functions that help implement screen.Drawer methods.
internal/errscreenPackage errscreen provides a stub Screen implementation.
internal/eventPackage event provides an infinitely buffered double-ended queue of events.
internal/lifecyclerPackage lifecycler tracks a window's lifecycle state.
internal/swizzlePackage swizzle provides functions for converting between RGBA pixel formats.
internal/win32Package win32 implements a partial shiny screen driver using the Win32 API.
internal/x11keyx11key contains X11 numeric codes for the keyboard and mouse.
mtldriverPackage mtldriver provides a Metal driver for accessing a screen.
mtldriver/internal/appkitPackage appkit provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
mtldriver/internal/coreanimPackage coreanim provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
windriverPackage windriver provides the Windows driver for accessing a screen.
x11driverPackage x11driver provides the X11 driver for accessing a screen.

Package driver imports 2 packages (graph) and is imported by 30 packages. Updated 2020-12-30. Refresh now. Tools for package owners.