在 GLADE Interface Designer 的 3xx 版本中有一个名为“Offscreen window”的顶级小部件,该图标的外观如下:
最佳答案
它用于包含不应出现在屏幕上但应绘制/渲染的小部件。根据documentation唯一支持的用途是屏幕截图:
GtkOffscreenWindow
is strictly intended to be used for obtaining snapshots of widgets that are not part of a normal widget hierarchy.
但是,它有时对于单元测试也很有用。
关于user-interface - 窗口与离屏窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32483752/