X/Gnome:如何测量打开窗口的几何形状

发布于 2024-07-06 01:16:44 字数 160 浏览 2 评论 0原文

是否有标准的 X / Gnome 程序可以显示我选择的窗口的 X、Y 宽度和深度(以像素为单位)? 类似于 xterm 在您调整窗口大小时显示窗口的宽度和深度(以行为单位)的方式。

我在 Red Hat Enterprise Linux 4.4 上运行。

谢谢!

Is there a standard X / Gnome program that will display the X,Y width and depth in pixels of a window that I select? Something similar to the way an xterm shows you the width and depth of the window (in lines) as you resize it.

I'm running on Red Hat Enterprise Linux 4.4.

Thanks!

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

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

发布评论

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

评论(2

归途 2024-07-13 01:16:44
$ xwininfo 

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x1200007 "xeyes"

  Absolute upper-left X:  1130
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 150
  Height: 100
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1130+0  -0+0  -0-924  +1130-924
  -geometry 150x100-0+0
$ xwininfo 

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x1200007 "xeyes"

  Absolute upper-left X:  1130
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 150
  Height: 100
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1130+0  -0+0  -0-924  +1130-924
  -geometry 150x100-0+0
夕嗳→ 2024-07-13 01:16:44

是的,您正在寻找程序“xwininfo”。 在另一个终端中运行它,然后单击您想要的信息窗口,它会给您提供信息。

希望这可以帮助!

Yes, you're looking for the program 'xwininfo'. Run it in another terminal and then click on the window you want info about and it will give it to you.

Hope this helps!

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