【问题标题】:X/Gnome: How to measure the geometry of an open windowX/Gnome:如何测量打开窗口的几何形状
【发布时间】:2010-09-09 12:59:12
【问题描述】:

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

我在 Red Hat Enterprise Linux 4.4 上运行。

谢谢!

【问题讨论】:

    标签: linux x11 gnome


    【解决方案1】:

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

    希望这会有所帮助!

    【讨论】:

      【解决方案2】:
      $ 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
      

      【讨论】:

        猜你喜欢
        • 2021-04-27
        • 1970-01-01
        • 2011-04-25
        • 2023-04-03
        • 1970-01-01
        • 1970-01-01
        • 2020-10-31
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多