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

Styling window in golang #8

Open erkinduran opened 7 years ago

erkinduran commented 7 years ago

Hi there,

I am developing an app in golang and using nice library nuklear. But when i styling window of my app etc background color, i can not set background color. I want to use ctx->style.window.background example. But in golang has not same code. I try ctx.Style() , but this code not continue about background. Could you add styling code in golang, ASAP or Can you help me? I am waiting for this.

xlab commented 7 years ago

Hi, related: https://github.com/golang-ui/nuklear/issues/6

TL;DR: You'll have to write a setter

erkinduran commented 7 years ago

Setter is placed in etc.go? Cause Style() in there

xlab commented 7 years ago

You can place in any file that is not auto-generated, etc.go there is my file for such stuff, yes.