g2-windows are sometimes confused with one another. Their purposes and relationship are as follows:
g2-window is a G2 item that G2 uses to track a window that the operating system maintains on G2's behalf.
g2-window acts in two ways:
g2-window causes G2 to tell the window system to correspondingly change the window itself.
g2-window provides the only interface through which an executing KB can poll and change a window within which G2 appears. The rest of the interface to the window system is platform-dependent, and is hidden within G2. Thus a g2-window provides a platform-independent interface to the native window system.Be careful not to confuse a window-system window with the
g2-window item that represents it within G2. To keep the distinction clear, this book always refers to the latter explicitly as a g2-window, omitting the special font except in code examples.