Example

The Go Nuklear bindings project provides an example application to demonstrate some widgets; we can use this to quickly check that things are working. With the previous setup steps complete, running the demo is as simple as installing the Go project and running it. The code is located in the cmd/nk-example sub-project of github.com/golang-ui/nuklear; we can use go install to download and install the example and run it using nk-example:

Installing and running a nuklear example is trivial once CGo is set up

Running the preceding commands should result in the following example window appearing on your screen. This example shows some of the widgets provided by the Nuklear toolkit, including embedded windows:

The nk-example application running on Linux
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.146.34.146