Lines Matching refs:window
51 Adds the \a window to the end of the list. If \a before is
52 given, it will be inserted right before that window.
55 WindowList::AddWindow(Window* window, Window* before)
57 window_anchor& windowAnchor = window->Anchor(fIndex);
66 windowAnchor.previous->Anchor(fIndex).next = window;
68 beforeAnchor.previous = window;
70 fFirstWindow = window;
74 fLastWindow->Anchor(fIndex).next = window;
77 fFirstWindow = window;
82 fLastWindow = window;
86 window->SetWorkspaces(window->Workspaces() | (1UL << fIndex));
91 WindowList::RemoveWindow(Window* window)
93 window_anchor& windowAnchor = window->Anchor(fIndex);
95 if (fFirstWindow == window) {
103 if (fLastWindow == window) {
112 window->SetWorkspaces(window->Workspaces() & ~(1UL << fIndex));
120 WindowList::HasWindow(Window* window) const
122 if (window == NULL)
125 return window->Anchor(fIndex).next != NULL
126 || window->Anchor(fIndex).previous != NULL
127 || fFirstWindow == window
128 || fLastWindow == window;
132 /*! Unlike HasWindow(), this will not reference the window pointer. You
133 can use this method to check whether or not a window is still part
134 of a list (when it's possible that the window is already gone).
139 for (Window *window = FirstWindow(); window != NULL;
140 window = window->NextWindow(fIndex)) {
141 if (window == validateWindow)
154 for (Window *window = FirstWindow(); window != NULL;
155 window = window->NextWindow(fIndex)) {