0

The title says it all. How would I, in theory, create a binding for different GUI toolkits for a programming language that has no GUI bindings. I ask because I want to experiment with this sometime in the future.

1
  • This question is way too broad. What is the problem you are trying to solve, and which programming language are we talking about? – Martin K Mar 4 '20 at 20:13
5

You would use the language's foreign function interface (FFI) to call out to the C bindings. You can look at how other languages have done this, like pygobject. It's not easy though. You have to understand the C implementation very well, and your FFI very well. If your goal is to learn how to do the bindings, it might be worth it. If your goal is to create a GUI desktop application in your language, there are probably easier options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.