Drivers
A driver in Fyne is responsible for rendering the text, canvas objects, and images, as well as handling window management and user input. The drivers are also required to handle any thread management behind the scenes. By adopting this design, it is possible for background processes or asynchronous events to update the user interface without any of the thread management code that is common in many graphical toolkits.
The default driver for Fyne uses Go-GL and the Go GLFW bindings, which means it has the same dependencies as the examples we worked through in the previous chapter, nk – Nuklear for Go. If your computer, and that of your target customers, supports OpenGL (which includes all recent desktop computers, most laptops, smart ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access