Home
last modified time | relevance | path

Searched refs:closeRect (Results 1 – 12 of 12) sorted by relevance

/haiku/src/apps/webpositive/tabview/
H A DTabManager.cpp547 BRect closeRect = _CloseRectFrame(Frame()); in MouseDown() local
548 if (!fController->CloseButtonsAvailable() || !closeRect.Contains(where)) { in MouseDown()
554 ContainerView()->Invalidate(closeRect); in MouseDown()
577 BRect closeRect = _CloseRectFrame(Frame()); in MouseMoved() local
578 bool overCloseRect = closeRect.Contains(where); in MouseMoved()
583 ContainerView()->Invalidate(closeRect); in MouseMoved()
617 BRect closeRect = _CloseRectFrame(frame); in _DrawCloseButton() local
618 frame.right = closeRect.left - be_control_look->DefaultLabelSpacing(); in _DrawCloseButton()
620 closeRect.left = (closeRect.left + closeRect.right) / 2 - 3; in _DrawCloseButton()
621 closeRect.right = closeRect.left + 6; in _DrawCloseButton()
[all …]
/haiku/src/servers/notification/
H A DNotificationView.cpp311 BRect closeRect = Bounds(); in _DrawCloseButton() local
313 closeRect.InsetBy(3 * kEdgePadding, 3 * kEdgePadding); in _DrawCloseButton()
314 closeRect.left = closeRect.right - kCloseSize; in _DrawCloseButton()
315 closeRect.bottom = closeRect.top + kCloseSize; in _DrawCloseButton()
321 BRect buttonRect(closeRect.InsetByCopy(-4, -4)); in _DrawCloseButton()
328 closeRect.OffsetBy(1, 1); in _DrawCloseButton()
334 StrokeLine(closeRect.LeftTop(), closeRect.RightBottom()); in _DrawCloseButton()
335 StrokeLine(closeRect.LeftBottom(), closeRect.RightTop()); in _DrawCloseButton()
353 BRect closeRect = Bounds().InsetByCopy(2,2); in MouseDown() local
354 closeRect.left = closeRect.right - kCloseSize; in MouseDown()
[all …]
H A DAppGroupView.cpp108 BRect closeRect = fCloseRect; in _DrawCloseButton() local
114 BRect buttonRect(closeRect.InsetByCopy(-4, -4)); in _DrawCloseButton()
121 closeRect.OffsetBy(1, 1); in _DrawCloseButton()
127 StrokeLine(closeRect.LeftTop(), closeRect.RightBottom()); in _DrawCloseButton()
128 StrokeLine(closeRect.LeftBottom(), closeRect.RightTop()); in _DrawCloseButton()
/haiku/src/add-ons/decorators/MacDecorator/
H A DMacDecorator.cpp239 tab->closeRect = tab->zoomRect; in _DoLayout()
242 tab->closeRect.OffsetTo(fTitleBarRect.left + 4, in _DoLayout()
254 - tab->closeRect.right - 10)) { in _DoLayout()
257 - (tab->closeRect.right + 5)) / 2); in _DoLayout()
261 tab->textOffset += int(tab->closeRect.right + 5 in _DoLayout()
264 tab->textOffset = int(tab->closeRect.right) + 5; in _DoLayout()
273 tab->closeRect.Set(0.0, 0.0, -1.0, -1.0); in _DoLayout()
524 left = tab->closeRect.right; in _DrawTab()
541 BPoint offset(left + 5, tab->closeRect.top); in _DrawTab()
543 tab->closeRect.top); in _DrawTab()
[all …]
/haiku/src/servers/app/decorator/
H A DTabDecorator.cpp575 tab->closeRect.OffsetBy(offset); in _MoveBy()
940 if (!(tab->flags & B_NOT_CLOSABLE) && invalid.Intersects(tab->closeRect)) in _DrawButtons()
941 _DrawClose(tab, false, tab->closeRect); in _DrawButtons()
999 BRect& closeRect = tab->closeRect; in _LayoutTabItems() local
1004 closeRect.Set(tabRect.left + offset, tabRect.top + offset, in _LayoutTabItems()
1012 closeRect.right = closeRect.left - offset; in _LayoutTabItems()
1016 closeRect.Set(tabRect.left + offset, tabRect.top + offset, in _LayoutTabItems()
1024 closeRect.bottom = closeRect.top - offset; in _LayoutTabItems()
1034 size = (zoomRect.left - closeRect.right) - tab->textOffset * 2 + inset; in _LayoutTabItems()
1036 size = (zoomRect.top - closeRect.bottom) - tab->textOffset * 2 + inset; in _LayoutTabItems()
[all …]
H A DDecorator.cpp36 closeRect(), in Tab()
631 if (tab->closeRect.Contains(where)) { in RegionAt()
736 dirty.Include(fTabList.ItemAt(i)->closeRect); in ExtendDirtyRegion()
901 _DrawClose(tab, false, tab->closeRect); in DrawTab()
928 _DrawClose(decoratorTab, true, decoratorTab->closeRect); in DrawClose()
1112 tab->closeRect.OffsetBy(offset); in _MoveBy()
H A DDefaultDecorator.cpp581 const BRect& closeRect = tab->closeRect; in _DrawTitle() local
597 titlePos.x = closeRect.IsValid() ? closeRect.right + tab->textOffset in _DrawTitle()
H A DDecorator.h44 BRect closeRect; member
/haiku/src/add-ons/decorators/WinDecorator/
H A DWinDecorator.cpp252 tab->closeRect = tab->zoomRect; in _DoLayout()
263 tab->closeRect.Set(0.0, 0.0, -1.0, -1.0); in _DoLayout()
363 const BRect& closeRect = tab->closeRect; in _DrawTitle() local
373 closeRect.IsValid() ? closeRect.left : tabRect.right) - 5) in _DrawTitle()
404 && invalid.Intersects(tab->closeRect)) { in _DrawButtons()
405 _DrawClose(tab, false, tab->closeRect); in _DrawButtons()
553 tab->closeRect.OffsetBy(offset); in _MoveBy()
/haiku/src/add-ons/decorators/FlatDecorator/
H A DFlatDecorator.cpp647 const BRect& closeRect = tab->closeRect; in _DrawTitle() local
663 titlePos.x = closeRect.IsValid() ? closeRect.right + tab->textOffset in _DrawTitle()
/haiku/src/add-ons/decorators/BeDecorator/
H A DBeDecorator.cpp670 const BRect& closeRect = tab->closeRect; in _DrawTitle() local
687 titlePos.x = closeRect.IsValid() ? closeRect.right + tab->textOffset in _DrawTitle()
/haiku/src/apps/webpositive/
H A DBrowserWindow.cpp285 BRect closeRect(frame.InsetByCopy(4, 4)); in Draw() local
301 closeRect.OffsetBy(1, 1); in Draw()
312 StrokeLine(closeRect.LeftTop(), closeRect.RightBottom()); in Draw()
313 StrokeLine(closeRect.LeftBottom(), closeRect.RightTop()); in Draw()