Lines Matching refs:view

54 FlatControlLook::DrawButtonFrame(BView* view, BRect& rect, const BRect& updateRect,
58 _DrawButtonFrame(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius, base, background,
64 FlatControlLook::DrawButtonFrame(BView* view, BRect& rect, const BRect& updateRect,
68 _DrawButtonFrame(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius, base, background,
74 FlatControlLook::DrawButtonFrame(BView* view, BRect& rect,
80 _DrawButtonFrame(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius, base, background,
86 FlatControlLook::DrawButtonBackground(BView* view, BRect& rect,
90 _DrawButtonBackground(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius, base, false,
96 FlatControlLook::DrawButtonBackground(BView* view, BRect& rect,
100 _DrawButtonBackground(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius, base, false,
106 FlatControlLook::DrawButtonBackground(BView* view, BRect& rect,
111 _DrawButtonBackground(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius, base, false,
117 FlatControlLook::DrawMenuBarBackground(BView* view, BRect& rect, const BRect& updateRect,
120 if (!ShouldDraw(view, rect, updateRect))
141 _DrawFrame(view, rect,
154 _DrawFrame(view, rect,
162 _FillGradient(view, rect, customColor, topTint, bottomTint);
167 FlatControlLook::DrawMenuFieldFrame(BView* view, BRect& rect,
171 _DrawButtonFrame(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius, base, background,
177 FlatControlLook::DrawMenuFieldFrame(BView* view, BRect& rect,
181 _DrawButtonFrame(view, rect, updateRect, radius, radius, radius, radius, base, background, 1.0,
187 FlatControlLook::DrawMenuFieldFrame(BView* view, BRect& rect,
193 _DrawButtonFrame(view, rect, updateRect, leftTopRadius, rightTopRadius, leftBottomRadius,
199 FlatControlLook::DrawMenuFieldBackground(BView* view, BRect& rect,
203 _DrawMenuFieldBackgroundOutside(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius,
209 FlatControlLook::DrawMenuFieldBackground(BView* view, BRect& rect,
213 _DrawMenuFieldBackgroundInside(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius, base,
219 FlatControlLook::DrawMenuFieldBackground(BView* view, BRect& rect,
223 _DrawMenuFieldBackgroundOutside(view, rect, updateRect, radius, radius,
229 FlatControlLook::DrawMenuFieldBackground(BView* view, BRect& rect,
234 _DrawMenuFieldBackgroundOutside(view, rect, updateRect, leftTopRadius,
241 FlatControlLook::DrawMenuBackground(BView* view, BRect& rect,
245 if (!ShouldDraw(view, rect, updateRect))
257 _DrawFrame(view, rect,
263 view->SetHighColor(background);
264 view->FillRect(rect);
269 FlatControlLook::DrawMenuItemBackground(BView* view, BRect& rect,
273 if (!ShouldDraw(view, rect, updateRect))
295 _DrawFrame(view, rect,
301 view->SetLowColor(selectedColor);
302 _FillGradient(view, rect, selectedColor, topTint, bottomTint);
307 FlatControlLook::DrawScrollBarBorder(BView* view, BRect rect,
311 if (!ShouldDraw(view, rect, updateRect))
314 view->PushState();
317 view->ClipToRect(rect);
322 view->SetHighColor(tint_color(base, 1.2));
325 // take care of border highlighting, scroll target is focus view
330 view->BeginLineArray(4);
332 view->AddLine(BPoint(rect.left + 1, rect.bottom),
334 view->AddLine(BPoint(rect.right, rect.top + 1),
338 view->AddLine(BPoint(rect.left, rect.top + 1),
341 view->AddLine(BPoint(rect.left, rect.top),
346 view->AddLine(BPoint(rect.left, rect.top),
349 view->AddLine(BPoint(rect.left + 1, rect.top),
353 view->EndLineArray();
355 view->StrokeRect(rect);
357 view->PopState();
362 FlatControlLook::DrawScrollBarButton(BView* view, BRect rect,
366 if (!ShouldDraw(view, rect, updateRect))
388 view->PushState();
389 view->ClipToRect(rect);
393 DrawScrollBarBackground(view, rect, updateRect, base, flags, orientation);
395 DrawArrowShape(view, rect, updateRect, arrowColor, direction, flags, 1.0f);
398 view->PopState();
403 FlatControlLook::DrawScrollBarBackground(BView* view, BRect& rect1,
407 DrawScrollBarBackground(view, rect1, updateRect, base, flags, orientation);
408 DrawScrollBarBackground(view, rect2, updateRect, base, flags, orientation);
413 FlatControlLook::DrawScrollBarBackground(BView* view, BRect& rect,
417 if (!ShouldDraw(view, rect, updateRect))
420 view->PushState();
423 view->ClipToRect(rect);
428 view->SetDrawingMode(B_OP_COPY);
437 _FillGradient(view, rect, base, gradient1Tint, gradient2Tint,
444 _FillGradient(view, rect, base, gradient1Tint, gradient2Tint,
449 view->PopState();
454 FlatControlLook::DrawScrollBarThumb(BView* view, BRect& rect,
458 if (!ShouldDraw(view, rect, updateRect))
461 view->PushState();
464 view->ClipToRect(rect);
480 view->SetDrawingMode(B_OP_OVER);
481 view->SetHighColor(dark1);
488 DrawScrollBarBackground(view, rect, updateRect, base_panel, flags, orientation);
493 view->SetHighColor(base_panel);
494 view->FillRect(rect);
496 _DrawNonFlatButtonBackground(view, rect, updateRect, clipping, kRadius + 1, kRadius + 1,
499 DrawScrollBarBackground(view, rect, updateRect, base_panel, flags, orientation);
520 view->SetHighColor(knobDark);
521 view->FillRect(knob);
522 view->SetHighColor(knobLight);
523 view->FillRect(knob.OffsetByCopy(1, 1));
528 view->SetHighColor(knobDark);
529 view->FillRect(knob.OffsetByCopy(-spacer, 0));
530 view->SetHighColor(knobLight);
531 view->FillRect(knob.OffsetByCopy(-spacer + 1, 1));
535 view->SetHighColor(knobDark);
536 view->FillRect(knob.OffsetByCopy(spacer, 0));
537 view->SetHighColor(knobLight);
538 view->FillRect(knob.OffsetByCopy(spacer + 1, 1));
542 view->SetHighColor(knobDark);
543 view->FillRect(knob);
544 view->SetHighColor(knobLight);
545 view->FillRect(knob.OffsetByCopy(1, 1));
550 view->SetHighColor(knobDark);
551 view->FillRect(knob.OffsetByCopy(0, -spacer));
552 view->SetHighColor(knobLight);
553 view->FillRect(knob.OffsetByCopy(1, -spacer + 1));
557 view->SetHighColor(knobDark);
558 view->FillRect(knob.OffsetByCopy(0, spacer));
559 view->SetHighColor(knobLight);
560 view->FillRect(knob.OffsetByCopy(1, spacer + 1));
568 view->BeginLineArray(6);
569 view->AddLine(
573 view->AddLine(
577 view->AddLine(
581 view->AddLine(
585 view->AddLine(
589 view->AddLine(
593 view->EndLineArray();
598 view->BeginLineArray(6);
599 view->AddLine(
603 view->AddLine(
607 view->AddLine(
611 view->AddLine(
615 view->AddLine(
619 view->AddLine(
623 view->EndLineArray();
628 view->PopState();
633 FlatControlLook::DrawScrollViewFrame(BView* view, BRect& rect,
650 view->SetHighColor(base);
651 view->FillRect(scrollCornerFillRect);
670 _DrawOuterResessedFrame(view, rect, base, 1.0, 1.0, flags, borders);
673 _DrawFrame(view, rect, scrollbarFrameColor, scrollbarFrameColor,
676 _DrawFrame(view, rect, scrollbarFrameColor, scrollbarFrameColor,
687 _DrawOuterResessedFrame(view, horizontalScrollBarFrame, base,
689 _DrawFrame(view, horizontalScrollBarFrame, scrollbarFrameColor,
699 _DrawOuterResessedFrame(view, verticalScrollBarFrame, base,
701 _DrawFrame(view, verticalScrollBarFrame, scrollbarFrameColor,
711 view->SetHighColor(base);
712 view->FillRect(scrollCornerFillRect);
726 FlatControlLook::DrawSliderBar(BView* view, BRect rect, const BRect& updateRect,
730 if (!ShouldDraw(view, rect, updateRect))
752 view->PushState();
753 view->ClipToRect(rightBarSide);
755 DrawSliderBar(view, rect, updateRect, base, leftFillColor, flags, orientation);
757 view->PopState();
759 view->PushState();
760 view->ClipToRect(leftBarSide);
762 DrawSliderBar(view, rect, updateRect, base, rightFillColor, flags,
765 // restore the clipping constraints of the view
766 view->PopState();
771 FlatControlLook::DrawSliderBar(BView* view, BRect rect, const BRect& updateRect,
775 if (!ShouldDraw(view, rect, updateRect))
796 view->PushState();
797 view->ClipToRect(rect);
798 view->ClipToInverseRect(barRect);
801 view->SetHighColor(base);
802 view->FillRect(rect);
852 drawing_mode oldMode = view->DrawingMode();
860 view->SetDrawingMode(B_OP_ALPHA);
869 _DrawRoundBarCorner(view, leftCorner, updateRect, edgeLightColor,
873 _DrawRoundBarCorner(view, rightCorner, updateRect, edgeLightColor,
877 _DrawRoundBarCorner(view, leftCorner, updateRect, edgeLightColor,
881 _DrawRoundBarCorner(view, rightCorner, updateRect, edgeLightColor,
886 view->PopState();
888 view->BeginLineArray(4);
890 view->AddLine(barRect.LeftTop(), barRect.RightTop(),
892 view->AddLine(barRect.LeftBottom(), barRect.RightBottom(),
895 view->AddLine(barRect.LeftTop(), barRect.RightTop(),
897 view->AddLine(barRect.LeftBottom(), barRect.RightBottom(),
901 view->AddLine(barRect.LeftTop(), barRect.LeftBottom(),
903 view->AddLine(barRect.RightTop(), barRect.RightBottom(),
906 view->AddLine(barRect.LeftTop(), barRect.LeftBottom(),
908 view->AddLine(barRect.RightTop(), barRect.RightBottom(),
912 view->EndLineArray();
914 view->SetDrawingMode(oldMode);
916 _FillGradient(view, barRect, fillColor, fillShadowTint, fillLightTint,
922 FlatControlLook::DrawSliderThumb(BView* view, BRect& rect, const BRect& updateRect,
925 if (!ShouldDraw(view, rect, updateRect))
966 _DrawFrame(view, rect, shadowColor, shadowColor, shadowColor, shadowColor);
970 DrawScrollBarBackground(view, rect, updateRect, base, flags, orientation);
978 view->SetHighColor(shadowColor);
979 view->StrokeLine(rect.LeftTop(), rect.LeftBottom());
981 view->SetHighColor(lightColor);
982 view->StrokeLine(rect.RightTop(), rect.RightBottom());
988 view->SetHighColor(shadowColor);
989 view->StrokeLine(rect.LeftTop(), rect.RightTop());
991 view->SetHighColor(lightColor);
992 view->StrokeLine(rect.LeftBottom(), rect.RightBottom());
995 view->SetDrawingMode(B_OP_COPY);
1000 FlatControlLook::DrawActiveTab(BView* view, BRect& rect,
1004 if (!ShouldDraw(view, rect, updateRect))
1013 // save the clipping constraints of the view
1014 view->PushState();
1017 view->ClipToRect(rect);
1080 _DrawRoundCornerLeftTop(view, leftTopCorner, updateRect, base,
1084 _DrawRoundCornerRightTop(view, rightTopCorner, updateRect, base,
1094 _DrawRoundCornerLeftBottom(view, leftBottomCorner, updateRect, base,
1099 _DrawRoundCornerRightBottom(view, rightBottomCorner, updateRect,
1108 _DrawRoundCornerLeftTop(view, leftTopCorner, updateRect, base,
1112 _DrawRoundCornerLeftBottom(view, leftBottomCorner, updateRect, base,
1122 _DrawRoundCornerRightTop(view, rightTopCorner, updateRect, base,
1127 _DrawRoundCornerRightBottom(view, rightBottomCorner, updateRect,
1134 view->ClipToInverseRect(roundCorner[0]);
1135 view->ClipToInverseRect(roundCorner[1]);
1154 _DrawFrame(view, rect, edgeShadowColor, edgeShadowColor, edgeLightColor,
1168 _DrawFrame(view, rect, frameLightColor, frameLightColor, frameShadowColor,
1171 _DrawFrame(view, rect, bevelLightColor, bevelLightColor, bevelShadowColor,
1174 view->FillRect(rect, fillGradient);
1176 // restore the clipping constraints of the view
1177 view->PopState();
1182 FlatControlLook::DrawSplitter(BView* view, BRect& rect, const BRect& updateRect,
1186 if (!ShouldDraw(view, rect, updateRect))
1200 DrawRaisedBorder(view, rect, updateRect, background, flags, borders);
1210 view->SetHighColor(background);
1211 view->FillRegion(&region);
1236 view->SetHighColor(col1);
1237 view->StrokeLine(dot, dot, B_SOLID_LOW);
1238 view->SetHighColor(col2);
1240 view->StrokeLine(dot, dot, B_SOLID_LOW);
1253 view->SetHighColor(background);
1254 view->FillRegion(&region);
1279 view->SetHighColor(col1);
1280 view->StrokeLine(dot, dot, B_SOLID_LOW);
1281 view->SetHighColor(col2);
1283 view->StrokeLine(dot, dot, B_SOLID_LOW);
1297 FlatControlLook::DrawBorder(BView* view, BRect& rect, const BRect& updateRect,
1306 _DrawFrame(view, rect, scrollbarFrameColor, scrollbarFrameColor,
1312 FlatControlLook::DrawRaisedBorder(BView* view, BRect& rect,
1316 _DrawFrame(view, rect, base, base, base, base, borders);
1321 FlatControlLook::DrawTextControlBorder(BView* view, BRect& rect,
1325 if (!ShouldDraw(view, rect, updateRect))
1346 drawing_mode oldMode = view->DrawingMode();
1347 view->SetDrawingMode(B_OP_ALPHA);
1349 _DrawButtonFrame(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius,
1352 view->SetDrawingMode(oldMode);
1355 _DrawButtonFrame(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius,
1362 FlatControlLook::DrawGroupFrame(BView* view, BRect& rect, const BRect& updateRect,
1371 _DrawFrame(view, rect, frameColor, frameColor, frameColor, frameColor, borders);
1376 FlatControlLook::DrawButtonWithPopUpBackground(BView* view, BRect& rect,
1380 _DrawButtonBackground(view, rect, updateRect, kRadius, kRadius, kRadius, kRadius, base, true,
1386 FlatControlLook::DrawButtonWithPopUpBackground(BView* view, BRect& rect,
1390 _DrawButtonBackground(view, rect, updateRect, radius, radius, radius,
1396 FlatControlLook::DrawButtonWithPopUpBackground(BView* view, BRect& rect,
1401 _DrawButtonBackground(view, rect, updateRect, leftTopRadius,
1411 FlatControlLook::_DrawButtonFrame(BView* view, BRect& rect,
1417 if (!ShouldDraw(view, rect, updateRect))
1427 // save the clipping constraints of the view
1428 view->PushState();
1431 view->ClipToRect(rect);
1437 _DrawFrame(view, rect, background, background, background, background, borders);
1438 _DrawFrame(view, rect, background, background, background, background, borders);
1439 view->PopState();
1455 drawing_mode oldMode = view->DrawingMode();
1466 view->SetHighColor(defaultIndicatorColor);
1467 view->StrokeRoundRect(rect, leftTopRadius, leftTopRadius);
1470 view->StrokeRoundRect(rect, leftTopRadius, leftTopRadius);
1478 view->SetDrawingMode(B_OP_ALPHA);
1497 _DrawRoundCornerFrameLeftTop(view, leftTopCorner, updateRect,
1499 view->ClipToInverseRect(cornerRect);
1509 _DrawRoundCornerFrameRightTop(view, rightTopCorner, updateRect,
1512 view->ClipToInverseRect(cornerRect);
1522 _DrawRoundCornerFrameLeftBottom(view, leftBottomCorner, updateRect,
1525 view->ClipToInverseRect(cornerRect);
1535 _DrawRoundCornerFrameRightBottom(view, rightBottomCorner,
1537 view->ClipToInverseRect(cornerRect);
1542 _DrawOuterResessedFrame(view, rect, background, 0, 0, flags, borders);
1545 _DrawOuterResessedFrame(view, rect, tint_color(background, 1.15), 0, 0);
1547 _DrawOuterResessedFrame(view, rect, background, 0, 0, flags, borders);
1550 view->SetDrawingMode(oldMode);
1554 drawing_mode oldDrawingMode = view->DrawingMode();
1555 view->SetDrawingMode(B_OP_ALPHA);
1557 _DrawFrame(view, rect, frameLightColor, frameLightColor, frameShadowColor, frameShadowColor,
1560 view->SetDrawingMode(oldDrawingMode);
1562 _DrawFrame(view, rect, frameLightColor, frameLightColor, frameShadowColor, frameShadowColor,
1566 // restore the clipping constraints of the view
1567 view->PopState();
1572 FlatControlLook::_DrawOuterResessedFrame(BView* view, BRect& rect,
1581 drawing_mode oldDrawingMode = view->DrawingMode();
1582 view->SetDrawingMode(B_OP_ALPHA);
1584 _DrawFrame(view, rect, edgeShadowColor, edgeShadowColor, edgeLightColor, edgeLightColor,
1587 view->SetDrawingMode(oldDrawingMode);
1589 _DrawFrame(view, rect, edgeShadowColor, edgeShadowColor, edgeLightColor, edgeLightColor,
1596 FlatControlLook::_DrawButtonBackground(BView* view, BRect& rect,
1603 if (!ShouldDraw(view, rect, updateRect))
1606 // save the clipping constraints of the view
1607 view->PushState();
1610 view->ClipToRect(rect);
1629 _DrawFlatButtonBackground(view, rect, updateRect, customColor, popupIndicator,
1633 _DrawNonFlatButtonBackground(view, rect, updateRect, clipping,
1638 // restore the clipping constraints of the view
1639 view->PopState();
1644 FlatControlLook::_DrawNonFlatButtonBackground(BView* view, BRect& rect,
1673 _DrawRoundCornerBackgroundLeftTop(view, leftTopCorner, updateRect,
1675 view->ClipToInverseRect(cornerRect);
1686 _DrawRoundCornerBackgroundRightTop(view, rightTopCorner,
1688 view->ClipToInverseRect(cornerRect);
1700 _DrawRoundCornerBackgroundLeftBottom(view, leftBottomCorner,
1702 view->ClipToInverseRect(cornerRect);
1713 _DrawRoundCornerBackgroundRightBottom(view, rightBottomCorner,
1715 view->ClipToInverseRect(cornerRect);
1721 view->BeginLineArray(4);
1725 view->AddLine(BPoint(rect.left, rect.top),
1730 view->AddLine(BPoint(rect.left, rect.top),
1737 view->AddLine(BPoint(rect.left, rect.top),
1742 view->AddLine(BPoint(rect.left, rect.top),
1747 view->EndLineArray();
1749 _DrawFrame(view, rect,
1774 view->BeginLineArray(2);
1776 view->AddLine(BPoint(indicatorRect.left - 2, indicatorRect.top),
1779 view->AddLine(BPoint(indicatorRect.left - 1, indicatorRect.top),
1783 view->EndLineArray();
1786 _DrawMenuFieldBackgroundInside(view, indicatorRect, updateRect, kRadius, rightTopRadius,
1792 _DrawPopUpMarker(view, indicatorRect, ui_color(B_MENU_ITEM_TEXT_COLOR), flags);
1796 view->FillRect(rect, fillGradient);
1801 FlatControlLook::_DrawPopUpMarker(BView* view, const BRect& rect,
1811 uint32 viewFlags = view->Flags();
1812 view->SetFlags(viewFlags | B_SUBPIXEL_PRECISE);
1820 view->SetHighColor(markColor);
1821 view->FillTriangle(triangle[0], triangle[1], triangle[2]);
1823 view->SetFlags(viewFlags);
1828 FlatControlLook::_DrawMenuFieldBackgroundOutside(BView* view, BRect& rect,
1833 if (!ShouldDraw(view, rect, updateRect))
1853 _DrawMenuFieldBackgroundInside(view, leftRect, updateRect, leftTopRadius, 0.0f,
1856 _DrawMenuFieldBackgroundInside(view, rightRect, updateRect, 0.0f, rightTopRadius, 0.0f,
1860 _DrawPopUpMarker(view, rightRect, ui_color(B_MENU_ITEM_TEXT_COLOR), flags);
1866 view->SetHighColor(bevelShadowColor);
1873 view->StrokeLine(leftTopCorner + BPoint(i, 0), leftBottomCorner + BPoint(i, 0));
1877 _DrawMenuFieldBackgroundInside(view, rect, updateRect, leftTopRadius,
1885 FlatControlLook::_DrawMenuFieldBackgroundInside(BView* view, BRect& rect,
1890 if (!ShouldDraw(view, rect, updateRect))
1893 // save the clipping constraints of the view
1894 view->PushState();
1897 view->ClipToRect(rect);
1946 view->PushState();
1947 view->ClipToRect(cornerRect);
1955 view->SetHighColor(frameLightColor);
1956 view->FillEllipse(ellipseRect);
1959 _DrawRoundCornerBackgroundLeftTop(view, leftTopCorner, updateRect,
1962 view->PopState();
1963 view->ClipToInverseRect(cornerRect);
1974 view->PushState();
1975 view->ClipToRect(cornerRect);
1984 view->SetHighColor(frameLightColor);
1985 view->FillEllipse(ellipseRect);
1992 view->FillEllipse(ellipseRect, gradient);
1996 _DrawRoundCornerBackgroundRightTop(view, rightTopCorner, updateRect,
1999 view->PopState();
2000 view->ClipToInverseRect(cornerRect);
2012 view->PushState();
2013 view->ClipToRect(cornerRect);
2022 view->SetHighColor(frameLightColor);
2023 view->FillEllipse(ellipseRect);
2030 view->FillEllipse(ellipseRect, gradient);
2034 _DrawRoundCornerBackgroundLeftBottom(view, leftBottomCorner,
2037 view->PopState();
2038 view->ClipToInverseRect(cornerRect);
2049 view->PushState();
2050 view->ClipToRect(cornerRect);
2058 view->SetHighColor(frameShadowColor);
2059 view->FillEllipse(ellipseRect);
2062 _DrawRoundCornerBackgroundRightBottom(view, rightBottomCorner,
2065 view->PopState();
2066 view->ClipToInverseRect(cornerRect);
2070 view->FillRect(rect, fillGradient);
2072 // restore the clipping constraints of the view
2073 view->PopState();