[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why are there no decent GUI toolkits for C?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 35
Thread images: 5

File: Screenshot_2017-08-02_15-44-13.png (15KB, 410x153px) Image search: [Google]
Screenshot_2017-08-02_15-44-13.png
15KB, 410x153px
Motif is ancient and GTK is a mess.
>>
>C
kek
>>
suck it up and use gtk+ like a big boy
>>
>>61687452
>C
>>>/reddit/
>>
>>61687519
GTK is so closely tied into Gnome and forces you to use its shitty libraries.
>>
>>61687452
Because GUIs are by necessity object-oriented. Even WIN32 pretty much just reinvents C++ just to get itself working.
>>
File: 1467387764069.jpg (15KB, 330x244px) Image search: [Google]
1467387764069.jpg
15KB, 330x244px
>>61687459
>>61687536
>>
Because most people don't want to program UI stuff in C. The most common reason people turn to C in the last decade is to eke out as much speed as they need. GUI spends most of its time doing nothing waiting for user input.

>>61687658
Not necessarily. That's just the most popular way. There are some very interesting proposals for other ways that have advantages in some use cases. One example that has gained some traction recently is immediate mode gui
>>
Separate your code into a library and GUI. Write the library in C.
>>
If you want to do GUI C is not the language you want to use. You can make Python bindings to your C code and then use PyQt.
>>
>>61687452
Because almost no one writes applications in C.
>>
>>61687772
What?
Most Linux applications are written in C.
>>
>>61687452
tk has c api.
but it is not easy to use without tcl.
>>
>>61687452
why did you screencap such a mundane post
>>
>>61688005
Because I thought it was funny at the time.
>>
>>61687452

IUP is god tier.

http://webserver2.tecgraf.puc-rio.br/iup/
>>
>>61689955
The best and simplest one!

/thread
>>
>>61687742

This is probably the dumbest post I've see pythonfags write in some time. Why the fuck would he use pyqt when he can just use c++ directly. Qt is a c++ library.
>>
If you're willing to use OBJECTIVE C, cocoa is pretty good.
>>
>>61687452
Switch to C++ and use Qt.
>>
You could try nuklear.
https://github.com/vurtun/nuklear
pic related, made with nuklear.

You could also try to look if there's other SDL / opengl based GUI libraries, they might be in C.
There's also libraries that let you write GUI's using html+css, I think one of the big ones had example using exported API.
>>
http://ecere.org/
ec is language that is superset of C, so every valid C program should compile with it.
It provides cross platform SDK for 2D, 3D graphics and GUI.
Not sure if you can just use it as library for C.
>>
>>61687452
Qt?
>>61687658
everytthing is just handles and SendMessage/PostMessage anyways, you can still make shit with ease, documentation is the problem here
>>
>>61689999
You stupid pythonfag
Write the ui on c++, write back end or algorithm in c if you want.
>>
>>61687452
>GTK is a mess
lol wut?

Anyway, use Qt like a real man.

>>61690168
Can still program C and just link properly.
>>
File: 20170802_153754.png (443KB, 887x1835px) Image search: [Google]
20170802_153754.png
443KB, 887x1835px
>>61687730
>>
>>61687452
just use C++
>>
File: Screenshot_20170802_145251.png (76KB, 765x569px) Image search: [Google]
Screenshot_20170802_145251.png
76KB, 765x569px
>>61691081
>>
>>61687452
Because C programmers are actually smart enough to use a text-based interface.
>>
>>61687536
riddet is written in python
>>
>>61687452
>Why are there no decent GUI toolkits for C?
Because C is a language for brainlets that lacks the facilities to create proper GUI toolkits (among other things, but lets focus on the topic at hand).
Whenever a GUI toolkit written in C comes up, it inevitably does at least one of the following:
a. reinvents runtime polymorphism and other stuff poorly (often some time AFTER recognizing that they should have written it in another language)
b. uses a fuckfest of void pointers
c. uses_fucking_ridiculous_long_stuff_names (but only in combination with the other things)
d. makes components that atomic you might as well implement your own toolkit (mostly in combination with e.)
e. outsources the impossible (like proper function dispatch) or uncomfortable (like actually using the API) things to some scriptshit
>>
>>61692349
hello pajeet
>>
>>61687452
oh my god, my shitpost was screencapped.

remember everyone, I was merely pretending.
>>
>>61692412
>not a brainlet for not clinging to the great C delusion
>better call him pajeet
>>
>>61687452
Everything worth doing can be done from the terminal.
Thread posts: 35
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.