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

Re-run c-for-go with StructAccessors = true. #72

Closed gmp216 closed 5 years ago

gmp216 commented 5 years ago

Re-run with latest version of c-for-go and StructAccessors = true. Many uses of nuklear are difficult or impossible without access to internal state provided by this option. For example, with this update, default style flags can be set as follows:

*ctx.Style().GetButton().GetTextAlignment() = nk.TextAlignLeft | nk.TextAlignMiddle