哪些GUI库不是面向对象的? [英] What GUI libraries are not object-oriented?

本文介绍了哪些GUI库不是面向对象的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我一直在使用C,并且想要探索编程,而不仅仅是控制台应用程序。然而,大多数GUI库都是面向对象的,并且使用非面向对象编程语言(如C语言)编程它们非常困难。即使面向面向对象的GUI库(例如为C设计的GTK +)也需要很多样板。因为我对这些面向对象的库有困难,所以我想知道哪些GUI库不是面向对象的?

不知道任何不是面向对象的现代GUI工具包。 OO只是一种非常有用的编程技术,即使在C语言中也是如此。

我唯一可以提到的是我认为不是OO的工具包是雅典娜。我还没有真正使用它,但很久以前,有一个短期的CS实验室任务使用了Athena。



我想你可以使用 xlib ,如果你真的想避免OO的话。


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?

解决方案

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.

这篇关于哪些GUI库不是面向对象的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆