GUI是如何真正制作的? [英] How are GUI's really made?

查看:15
本文介绍了GUI是如何真正制作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是
像 Qt 这样的 Gui 库,可以说用于 Windows 操作系统他们如何创建所有这些图形用户界面(Windows 等).

My question is
Gui libraries like Qt and lets say for Windows operating systems how do they create all those graphical user interfaces(windows etc).

每个操作系统是否提供 API 或其他东西来这样做?如果是,那么操作系统如何绘制所有这些窗口和东西.它们(操作系统)是否控制"屏幕,然后逐个绘制每个像素以GUI 达到目的了吗?

Does each operating system gives API's or something else to do so?If yes, then how operating systems draw all those windows and things.Do they (operating systems) "control" the screen and then draw each pixel one by one to achieve their goal the GUI?

我想要一个能在最低水平上解释事情的答案,但是我不要求有人给我写所有发生的事情(即使我愿意),因为我知道所有这些背后都有很多事情.所以这个原因带有链接的评论或建议的书籍,其中解释了详细信息
我们将不胜感激.

I would like an answer that explains things at the lowest level possible but well i don't demand someone to write me everything that happens( even if i would like to) because i know many things are behind all these.So for this reason comments with links or suggested books which explain with details
on what is happening under the hood would be appreciated.

推荐答案

操作系统提供了与监视器/显示器接口的库.简而言之,Qt 之类的 GUI 库与操作系统的这些库进行交互,并为您(程序员)与监视器交互创建了一个更容易的桥梁.例如,Qt 可能有一个 drawLine 功能,它在下面负责处理与在操作系统的监视器/显示器上绘图相关的像素排列.

The operating system provides libraries that interface with the monitor/display. In short, GUI libraries such as Qt interact with those libraries of the operating system and creates an easier bridge for you, the programmer to interact with the monitor. For instance, Qt might have a drawLine feature, which underneath is taking care of pixel arrangement related to drawing on the monitor/display for the operating system.

这篇关于GUI是如何真正制作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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