Lines Matching defs:window
85 DecorAddOn::AllocateWindowBehaviour(Window* window)
87 return new (std::nothrow)SATWindowBehaviour(window,
88 window->Desktop()->GetStackAndTile());
128 DecorManager::AllocateDecorator(Window* window)
140 if (window == fPreviewWindow) {
142 return fPreviewDecor->AllocateDecorator(window->Desktop(),
143 window->GetDrawingEngine(), window->Frame(), window->Title(),
144 window->Look(), window->Flags());
150 return fCurrentDecor->AllocateDecorator(window->Desktop(),
151 window->GetDrawingEngine(), window->Frame(), window->Title(),
152 window->Look(), window->Flags());
157 DecorManager::AllocateWindowBehaviour(Window* window)
165 return fCurrentDecor->AllocateWindowBehaviour(window);
170 DecorManager::CleanupForWindow(Window* window)
172 // Given window is being deleted, do any cleanup needed
173 if (fPreviewWindow == window && window != NULL){
185 DecorManager::PreviewDecorator(BString path, Window* window)
187 if (fPreviewWindow != NULL && fPreviewWindow != window){
188 // Reset other window to current decorator - only one can preview
194 if (window == NULL)
197 // We have to jump some hoops because the window must be able to
205 window->GetBorderRegion(&border);
209 fPreviewWindow = window;
210 // After this call, the window has deleted its decorator.
214 window->GetBorderRegion(&newBorder);
217 window->Desktop()->RebuildAndRedrawAfterWindowChange(window, border);