What GUI libraries are not object-oriented? [closed]

。_饼干妹妹 提交于 2019-12-06 06:43:58

问题


I have been using C a lot lately, and want to explore programming more than just console applications. However, most GUI libraries are object-oriented, and it is very difficult to program with them in programming languages which are not object-oriented such as C. Even object-oriented GUI libraries such as GTK+ that are designed for C require a lot of boilerplate. Because I am having difficulty with these object-oriented libraries I am wondering what GUI libraries are not object-oriented?


回答1:


I don't know of any modern GUI toolkit that isn't object oriented. OO is simply a very useful programming technique, even in C.

The only toolkit I can mention that I think is not OO is Athena. I haven't really used it, but did have one short CS lab assignment a long time ago that used Athena.

I suppose you could use xlib directly, if you really want to avoid OO.



来源:https://stackoverflow.com/questions/12013693/what-gui-libraries-are-not-object-oriented

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!