While most newt applications do use windows, newt's window support is actually extremely limited. Windows must be destroyed in the opposite of the order they were created, and only the topmost window may be active. Corollaries to this are:
The user may not switch between windows.
Only the top window may be destroyed.
There are two main ways of opening newt windows: with or without explicit sizings. When grids (which will be introduced later in this tutorial) are used, a window may be made to just fit the grid. When grids are not used, explicit sizing must be given.
int newtCenteredWindow(int width, int height, const char * title); int newtOpenWindow(int left, int top, int width, int height, const char * title); |
All windows are destroyed in the same manner, no matter how the windows were originally created.
void newtPopWindow(void); |