r/C_Programming • • Jul 20 '24

Question Good GUI libraries?

So Qt is C++ not C, which is fine cause i dont really need something as complicated as Qt.

Nuklear looked good but i havent seen any resources to learn it and it seems made for games rather than used standalone as a user interface.

So i would like to hear your suggestions and learning resources.

Oh, also cross-compatiblility is important please!

48 Upvotes

60 comments sorted by

View all comments

Show parent comment

1

u/EionRobb Jul 23 '24

I had a similar issue with pasting images (I assume you mean images when you say textures?) on Windows in Pidgin, which is GTK2. The code we had worked fine for pasting images in MacOS and Linux, but on Windows it needed an explicit call to gtk_clipboard_request_image to get the image data, and I ended up writing a Windows-specific Pidgin plugin to do that. The existing paste handling code worked fine for text and files.

1

u/catbrane Jul 23 '24

Ah interesting! Yes, gtk4 has a special GValue type for copy-paste of image data (eg. pressing PrtScn, then ^V into a program) called GskTexture (from memory).

The sending and recieving programs have to agree on an image format for the data and I guess this negotiation is failing. Perhaps Windows insists on BMP? I've not looked into it carefully enough.