Lines Matching defs:window

61 // a window or because the client invalidates parts.
63 // other windows, the other window will be seen longer at
75 ::ServerWindow* window, DrawingEngine* drawingEngine)
94 fWindow(window),
96 fDesktop(window->Desktop()),
147 // the desktop window spans over the whole screen
165 STRACE(("\tWindow %s\n", window ? window->Title() : "NULL"));
197 // start from full region (as if the window was fully visible)
315 Window* window = stack->WindowList().ItemAt(i);
316 if (window == this)
318 window->MoveBy(x, y, false);
344 Window* window = stack->WindowList().ItemAt(i);
346 if (wantWidth < window->fMinWidth)
347 wantWidth = window->fMinWidth;
348 if (wantWidth > window->fMaxWidth)
349 wantWidth = window->fMaxWidth;
351 if (wantHeight < window->fMinHeight)
352 wantHeight = window->fMinHeight;
353 if (wantHeight > window->fMaxHeight)
354 wantHeight = window->fMaxHeight;
381 Window* window = stack->WindowList().ItemAt(i);
382 if (window == this)
384 window->ResizeBy(x, y, dirtyRegion, false);
408 Window* window = stack->WindowList().ItemAt(i);
410 if (wantWidth < window->fMinWidth)
411 wantWidth = window->fMinWidth;
412 if (wantWidth > window->fMaxWidth)
413 wantWidth = window->fMaxWidth;
415 if (wantHeight < window->fMinHeight)
416 wantHeight = window->fMinHeight;
417 if (wantHeight > window->fMaxHeight)
418 wantHeight = window->fMaxHeight;
628 // only reload the window at the first position
640 Window* window = stack->WindowAt(i);
643 if (decorator->AddTab(settings, window->Title(), window->Look(),
644 window->Flags(), -1, &dirty) == NULL) {
664 Window* window = stack->WindowAt(i);
665 if (window->IsFocus())
667 if (window == stack->TopLayerWindow())
743 // it means that the window thread currently
745 // executed from the window thread, it should
750 // the window needs to be informed
752 // NOTE: when the window thread has processed
757 // Until the message is processed in the window
889 /*! \brief Handles a mouse-down message for the window.
898 different button has been used or a different window was targeted). This
918 // Let the window behavior process the mouse event.
928 // click was inside the window contents
939 // Activate or focus the window in case it doesn't accept first
954 // the front window instead of the focus window
1005 // TODO: there is more for real cursor support, ie. if a window is closed,
1083 // so the window thread cannot be
1320 // we might need to resize the window!
1327 // we don't need a decorator for this window
1375 // we might need to resize the window!
1393 /*! Returns whether or not a window is in the workspace list with the
1439 for (Window* window = NextWindow(fCurrentWorkspace); window != NULL;
1440 window = window->NextWindow(fCurrentWorkspace)) {
1441 if (window->IsHidden() || !window->IsModal())
1444 if (window->HasInSubset(this))
1453 this window can get.
1454 Returns NULL is this window can be the backmost window.
1457 the value is -1, the window's current workspace will be used.
1460 Window::Backmost(Window* window, int32 workspace)
1473 if (window == NULL)
1474 window = PreviousWindow(workspace);
1476 for (; window != NULL; window = window->PreviousWindow(workspace)) {
1477 if (window->IsHidden() || window == this)
1480 if (HasInSubset(window))
1481 return window;
1488 /*! \brief Returns the window that's in front of the frontmost position
1489 this window can get.
1490 Returns NULL if this window can be the frontmost window.
1493 the value is -1, the window's current workspace will be used.
1511 for (Window* window = first; window != NULL;
1512 window = window->NextWindow(workspace)) {
1513 if (window->IsHidden() || window == this)
1516 if (window->HasInSubset(this))
1517 return window;
1525 Window::AddToSubset(Window* window)
1527 return fSubsets.AddItem(window);
1532 Window::RemoveFromSubset(Window* window)
1534 fSubsets.RemoveItem(window);
1538 /*! Returns whether or not a window is in the subset of this window.
1539 If a window is in the subset of this window, it means it should always
1540 appear behind this window.
1543 Window::HasInSubset(const Window* window) const
1545 if (window == NULL || fFeel == window->Feel()
1549 // Menus are a special case: they will always be on-top of every window
1552 return window->ServerWindow()->App() == ServerWindow()->App();
1553 if (window->Feel() == kMenuWindowFeel)
1565 if (window->Feel() == kFeels[order])
1570 && window->Feel() != B_MODAL_APP_WINDOW_FEEL)
1572 return window->ServerWindow()->App() == ServerWindow()->App();
1574 return fSubsets.HasItem(window);
1578 /*! \brief Collects all workspaces views in this window and puts it into \a list
1588 /*! \brief Returns on which workspaces the window should be visible.
1590 A modal or floating window may be visible on a workspace if one
1592 to have a subset as front window to be visible.
1626 Window* window = fSubsets.ItemAt(i);
1628 if (!window->IsHidden())
1629 workspaces |= window->Workspaces();
1630 if (window == fDesktop->FrontWindow() && window->IsNormal())
1644 /*! Returns whether or not a window is in the subset workspace list with the
1797 // this is executed in the window thread, but only
1946 // append the current window geometry to the
2031 // Automatically resize the window to fit these new limits
2117 // The lock must normally be held but is not held when closing the window.
2162 Window::AddWindowToStack(Window* window)
2171 // move window to the own position
2173 BRect frame = window->Frame();
2179 dirty.Include(&window->VisibleRegion());
2180 window->MoveBy(deltaToX, deltaToY, false);
2181 window->ResizeBy(deltaByX, deltaByY, &dirty, false);
2183 // first collect dirt from the window to add
2184 ::Decorator* otherDecorator = window->Decorator();
2194 if (stack->AddWindow(window, position) == false)
2196 window->DetachFromWindowStack(false);
2197 window->fCurrentStack.SetTo(stack);
2201 decorator->AddTab(settings, window->Title(), window->Look(),
2202 window->Flags(), position, &dirty);
2205 window->SetLook(window->Look(), &dirty);
2207 window->SetFocus(window->IsFocus());
2221 Window* window = fCurrentStack->WindowAt(tab);
2222 if (window != NULL)
2223 return window;
2348 WindowStack::AddWindow(Window* window, int32 position)
2351 if (fWindowList.AddItem(window, position) == false)
2353 } else if (fWindowList.AddItem(window) == false)
2356 if (fWindowLayerOrder.AddItem(window) == false) {
2357 fWindowList.RemoveItem(window);
2365 WindowStack::RemoveWindow(Window* window)
2367 if (fWindowList.RemoveItem(window) == false)
2370 fWindowLayerOrder.RemoveItem(window);
2376 WindowStack::MoveToTopLayer(Window* window)
2378 int32 index = fWindowLayerOrder.IndexOf(window);