Window 与屏幕外 window
Window vs Offscreen window
在 GLADE Interface Designer there is a toplevel widget called "Offscreen window", which icon has the looking of that:
的 3xx 版本中
它与常见的 window 顶级小部件有何不同 ,它有什么用途?
它用于包含不应该出现在屏幕上但应该被绘制/呈现的小部件。根据 documentation,唯一支持的用途是截图:
GtkOffscreenWindow
is strictly intended to be used for obtaining snapshots of widgets that are not part of a normal widget hierarchy.
但是,它有时也可以用于单元测试。
在 GLADE Interface Designer there is a toplevel widget called "Offscreen window", which icon has the looking of that:
它与常见的 window 顶级小部件有何不同
它用于包含不应该出现在屏幕上但应该被绘制/呈现的小部件。根据 documentation,唯一支持的用途是截图:
GtkOffscreenWindow
is strictly intended to be used for obtaining snapshots of widgets that are not part of a normal widget hierarchy.
但是,它有时也可以用于单元测试。