Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etc.go getters/setters #75

Open
rishabh-bector opened this issue Feb 17, 2019 · 1 comment
Open

etc.go getters/setters #75

rishabh-bector opened this issue Feb 17, 2019 · 1 comment

Comments

@rishabh-bector
Copy link

Hi,

I'm attempting to use this library to create a UI for the game engine I'm developing here: https://github.com/rishabh-bector/rapidengine. I've read the previous issues on styling and editing the Context of Nuklear, and I understand that cgogen is not able to auto generate Getters and Setters for structs, so they have to be written by hand at the moment as you have done in etc.go. I also read that you have chosen not to export the fields of these structs, due to the large amount of internal state they contain.

In this case, is it possible for me to use cgogen to create my own bindings for Nuklear in which all struct fields are exported? I think that this would be a much more convenient solution (despite the downsides).

Thanks,
Rishabh

@xlab
Copy link
Member

xlab commented Mar 1, 2019

Hi, I think you can use the latest feature introduced here:

So basically you can fork my bindings, modify manifest to have StructAccessors: true and try it. If it will work good, I think I could merge that back. :)

I think @gmp216 already does that well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants