golang-ui / nuklear

This project provides Go bindings for nuklear.h — a small ANSI C GUI library.
https://github.com/vurtun/nuklear
MIT License
1.57k stars 98 forks source link

What is etc file and what kind of needs is used for ? #56

Closed TechComSpot closed 6 years ago

TechComSpot commented 6 years ago

Hi, @xlab.

Unfortunately I did find this from the project documentation either from posted issues.

Can anyone tell for the nob like me, please?

xlab commented 6 years ago

We put any helpers that improve usability of Nuklear in that file. For example, many Nuklear configuration options should be set as a private fields of an inner C struct, e.g. https://github.com/golang-ui/nuklear/pull/54 or someone need to read the state that can only be accessed using inner fields of C struct https://github.com/golang-ui/nuklear/pull/47

So etc.go contains manually written setters and getters. Hopefully this explains well :)