为什么 GUI 应用程序使用左上角而不是左下角?

发布于 2025-01-02 12:51:07 字数 35 浏览 3 评论 0原文

我在那个角落编程没有问题,但我想知道这个选择背后的原因。

I don't have a problem programing to that corner, but I want to know the reason behind this choice.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

谈下烟灰 2025-01-09 12:51:07

这是历史的偶然。

因此,您会问为什么显示器上的像素按从上到下排列的从左到右的行进行索引,使 +y 轴向下而不是像笛卡尔系统中那样向上。长话短说,CRT 按此顺序显示扫描线,因此通过以相同的方式排列视频内存,视频驱动程序可以向前扫描连续的内存块,并将扫描线发送到显示器。该选择本质上是任意的,就像笛卡尔坐标系中 +y 指向上方一样;这种安排对于从左到右语言的纸上图表来说更方便,因为它很容易作为随时间推移的进展等的助记符。

同样,在 CRT 上,选择可能是遵循创建者的阅读顺序。在基于字符的显示上,如果按照读取的顺序显示字符,则自上次更新以来添加到屏幕的字符将尽早显示,从而减少视觉滞后。

It’s an accident of history.

So you’re asking why the pixels on a monitor are indexed in left-to-right rows arranged from top to bottom, making the +y axis downward rather than upward as in the Cartesian system. Long story short, CRTs display scanlines in this order, so by arranging video memory in the same way, the video driver can just scan forward through a contiguous chunk of memory, sending scanlines to the monitor as it goes. The choice is essentially arbitrary, just as it is with Cartesian coordinates where +y points upward; that arrangement is more convenient for graphs on paper in left-to-right languages, because it readily serves as a mnemonic for progress over time and so on.

Likewise, on a CRT, the choice was probably made to follow the reading order of the creators. On a character-based display, if you display characters in the same order they’re read, then characters that have been added to the screen since the last update will be displayed as early as possible, reducing visual lag.

鱼窥荷 2025-01-09 12:51:07

这可能是一个历史事件,很可能是由于电视光栅中扫描线的排序方式(从左到右,从上到下)造成的。

This is probably a historical thing, due most probably to the way the scan lines are ordered in a television raster (left to right, top to bottom).

作业与我同在 2025-01-09 12:51:07
  • 您在纸上从 LEFT_TOP 开始的历史记录

  • 开始的历史记录

    从 LEFT_TOP 开始的技术 CRT

  • historical you wrote on the paper from LEFT_TOP

  • technical CRT starting from LEFT_TOP

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文