#include <ZList.h>
Accessors | |
Wnd * | Pick (const Pt &pt, Wnd *modal, Wnd *ignore=0) const |
Mutators | |
void | Add (Wnd *wnd) |
bool | Remove (Wnd *wnd) |
bool | MoveUp (Wnd *wnd) |
bool | MoveDown (Wnd *wnd) |
Windows being moved up, inserted, or added to the top of the list are checked against other windows at the insertion point and after; if any of these windows are modal or on-top windows, the inserted window is placed after them if it is not also modal or on-top. Z-values decrease into the screen. Windows in the z-list are kept in front-to-back order. No windows may share the same z-value. Add, Remove, MoveUp, and MoveDown all also add/remove/move all descendent windows.
Definition at line 46 of file ZList.h.
returns pointer to the window under the point pt; constrains pick to modal if nonzero, and ignores ignore if nonzero
void GG::ZList::Add | ( | Wnd * | wnd | ) |
bool GG::ZList::Remove | ( | Wnd * | wnd | ) |
removes wnd from z-order
bool GG::ZList::MoveUp | ( | Wnd * | wnd | ) |
moves wnd from its current position to the beginning of list; updates wnd's z-value
bool GG::ZList::MoveDown | ( | Wnd * | wnd | ) |
moves wnd from its current position to the end of list; updates wnd's z-value