Lines Matching defs:rect

115 BeControlLook::DrawButtonFrame(BView* view, BRect& rect,
119 _DrawButtonFrame(view, rect, updateRect, 0, 0, 0, 0, base,
125 BeControlLook::DrawButtonFrame(BView* view, BRect& rect,
129 _DrawButtonFrame(view, rect, updateRect, 0, 0, 0, 0, base,
135 BeControlLook::DrawButtonFrame(BView* view, BRect& rect,
139 _DrawButtonFrame(view, rect, updateRect, 0, 0, 0, 0, base,
145 BeControlLook::DrawButtonBackground(BView* view, BRect& rect,
149 _DrawButtonBackground(view, rect, updateRect, 0, 0, 0, 0,
155 BeControlLook::DrawButtonBackground(BView* view, BRect& rect,
159 _DrawButtonBackground(view, rect, updateRect, 0, 0, 0, 0,
165 BeControlLook::DrawButtonBackground(BView* view, BRect& rect,
169 _DrawButtonBackground(view, rect, updateRect, 0, 0, 0, 0,
175 BeControlLook::DrawCheckBox(BView* view, BRect& rect, const BRect& updateRect,
178 if (!rect.Intersects(updateRect))
198 view->FillRect(rect);
203 view->StrokeRect(rect);
205 rect.InsetBy(1, 1);
209 view->AddLine(BPoint(rect.left, rect.bottom),
210 BPoint(rect.left, rect.top), darken2);
211 view->AddLine(BPoint(rect.left, rect.top),
212 BPoint(rect.right, rect.top), darken2);
213 view->AddLine(BPoint(rect.left, rect.bottom),
214 BPoint(rect.right, rect.bottom), darken4);
215 view->AddLine(BPoint(rect.right, rect.bottom),
216 BPoint(rect.right, rect.top), darken4);
222 view->AddLine(BPoint(rect.left, rect.bottom),
223 BPoint(rect.left, rect.top), darken1);
224 view->AddLine(BPoint(rect.left, rect.top),
225 BPoint(rect.right, rect.top), darken1);
227 rect.InsetBy(1, 1);
228 view->AddLine(BPoint(rect.left, rect.bottom),
229 BPoint(rect.left, rect.top), darken4);
230 view->AddLine(BPoint(rect.left, rect.top),
231 BPoint(rect.right, rect.top), darken4);
232 view->AddLine(BPoint(rect.left + 1, rect.bottom),
233 BPoint(rect.right, rect.bottom), base);
234 view->AddLine(BPoint(rect.right, rect.bottom),
235 BPoint(rect.right, rect.top + 1), base);
244 view->StrokeRect(rect);
250 view->FillRect(rect);
255 view->AddLine(BPoint(rect.left, rect.bottom),
256 BPoint(rect.left, rect.top), base);
257 view->AddLine(BPoint(rect.left, rect.top),
258 BPoint(rect.right, rect.top), base);
260 rect.InsetBy(1, 1);
261 view->AddLine(BPoint(rect.left, rect.bottom),
262 BPoint(rect.left, rect.top), darken2);
263 view->AddLine(BPoint(rect.left, rect.top),
264 BPoint(rect.right, rect.top), darken2);
265 view->AddLine(BPoint(rect.left + 1, rect.bottom),
266 BPoint(rect.right, rect.bottom), darken1);
267 view->AddLine(BPoint(rect.right, rect.bottom),
268 BPoint(rect.right, rect.top + 1), darken1);
275 rect.InsetBy(4, 4);
282 rect.right++;
283 rect.bottom++;
294 view->StrokeLine(rect.LeftTop(), rect.RightBottom());
295 view->StrokeLine(rect.LeftBottom(), rect.RightTop());
301 BeControlLook::DrawRadioButton(BView* view, BRect& rect,
304 if (!ShouldDraw(view, rect, updateRect))
347 rect.InsetBy(2, 2);
355 view->FillEllipse(rect);
358 view->FillEllipse(BRect(rect.left + 2, rect.top + 2, rect.right - 3,
359 rect.bottom - 3));
362 view->FillEllipse(BRect(rect.left + 3, rect.top + 3, rect.right - 5,
363 rect.bottom - 5));
367 view->FillEllipse(rect);
370 rect.InsetBy(-1, -1);
378 view->StrokeEllipse(rect.InsetByCopy(1, 1));
383 view->StrokeArc(rect, 45.0, 180.0);
385 view->StrokeArc(rect, 45.0, -180.0);
390 view->StrokeArc(rect, 45.0, 180.0);
392 view->StrokeArc(rect, 45.0, -180.0);
400 BeControlLook::DrawScrollBarBorder(BView* view, BRect rect,
404 if (!ShouldDraw(view, rect, updateRect))
409 view->ClipToRect(rect);
419 view->StrokeRect(rect);
426 BeControlLook::DrawScrollBarButton(BView* view, BRect rect,
446 view->AddLine(rect.LeftTop(), rect.LeftBottom() - BPoint(0, 1), shine);
447 view->AddLine(rect.LeftTop(), rect.RightTop() - BPoint(1, 0), shine);
448 view->AddLine(rect.RightTop(), rect.RightBottom() - BPoint(0, 1), shadow);
449 view->AddLine(rect.LeftBottom(), rect.RightBottom(), shadow);
464 rect.InsetBy(1, 1);
465 view->FillRect(rect);
471 rect.InsetBy(1, 1);
472 rect.OffsetBy(-3, -3);
476 BRect r(rect.left, rect.top, rect.left + 14, rect.top + 14);
562 BeControlLook::DrawScrollBarBackground(BView* view, BRect& rect,
566 _DrawScrollBarBackgroundFirst(view, rect, updateRect, base, flags,
572 BeControlLook::DrawScrollBarThumb(BView* view, BRect& rect,
576 if (!ShouldDraw(view, rect, updateRect))
581 view->ClipToRect(rect);
585 BRect orig(rect);
607 view->AddLine(rect.LeftTop(), rect.LeftBottom(), shine);
608 rect.left++;
609 view->AddLine(rect.LeftTop(), rect.RightTop(), shine);
610 rect.top++;
613 view->AddLine(rect.LeftTop(), rect.LeftBottom(), shine);
614 rect.left++;
615 view->AddLine(rect.LeftTop(), rect.RightTop(), shine);
616 rect.top++;
622 view->FillRect(rect);
627 rect.right--;
628 view->AddLine(rect.RightTop(), rect.RightTop(), base);
630 rect.bottom--;
631 view->AddLine(rect.LeftBottom(), rect.LeftBottom(), base);
635 // restore rect
636 rect = orig;
641 float hcenter = rect.left + rect.Width() / 2;
642 float vmiddle = rect.top + rect.Height() / 2;
651 float spacer = rect.Height();
653 if (rect.left + 7 < hcenter - spacer) {
658 if (rect.right - 7 > hcenter + spacer) {
663 float spacer = rect.Width();
665 if (rect.top + 7 < vmiddle - spacer) {
670 if (rect.bottom - 7 > vmiddle + spacer) {
680 float spacer = rect.Height();
682 if (rect.left + 4 < hcenter - spacer) {
687 if (rect.right - 4 > hcenter + spacer) {
692 float spacer = rect.Width();
694 if (rect.top + 4 < vmiddle - spacer) {
699 if (rect.bottom - 5 > vmiddle + spacer) {
713 BeControlLook::DrawScrollViewFrame(BView* view, BRect& rect,
722 view->AddLine(rect.LeftBottom(), rect.LeftTop(), darken1);
723 view->AddLine(rect.LeftTop(), rect.RightTop(), darken1);
724 view->AddLine(rect.RightTop(), rect.RightBottom(), lightenmax);
725 view->AddLine(rect.RightBottom(), rect.LeftBottom(), lightenmax);
728 rect.InsetBy(1, 1);
738 view->StrokeRect(rect);
743 BeControlLook::DrawArrowShape(BView* view, BRect& rect, const BRect& updateRect,
746 if (!ShouldDraw(view, rect, updateRect))
757 view->FillTriangle(rect.LeftTop() + BPoint(4, 6),
758 rect.LeftTop() + BPoint(8, 2),
759 rect.LeftTop() + BPoint(8, 10));
761 view->StrokeTriangle(rect.LeftTop() + BPoint(4, 6),
762 rect.LeftTop() + BPoint(8, 2),
763 rect.LeftTop() + BPoint(8, 10));
769 view->FillTriangle(rect.LeftTop() + BPoint(4, 2),
770 rect.LeftTop() + BPoint(4, 10),
771 rect.LeftTop() + BPoint(8, 6));
773 view->StrokeTriangle(rect.LeftTop() + BPoint(4, 2),
774 rect.LeftTop() + BPoint(4, 10),
775 rect.LeftTop() + BPoint(8, 6));
780 view->FillTriangle(rect.LeftTop() + BPoint(6, 4),
781 rect.LeftTop() + BPoint(2, 8),
782 rect.LeftTop() + BPoint(10, 8));
784 view->StrokeTriangle(rect.LeftTop() + BPoint(6, 4),
785 rect.LeftTop() + BPoint(2, 8),
786 rect.LeftTop() + BPoint(10, 8));
791 view->FillTriangle(rect.LeftTop() + BPoint(2, 4),
792 rect.LeftTop() + BPoint(10, 4),
793 rect.LeftTop() + BPoint(6, 8));
795 view->StrokeTriangle(rect.LeftTop() + BPoint(2, 4),
796 rect.LeftTop() + BPoint(10, 4),
797 rect.LeftTop() + BPoint(6, 8));
806 BeControlLook::DrawMenuBarBackground(BView* view, BRect& rect,
810 if (!ShouldDraw(view, rect, updateRect))
817 view->FillRect(rect);
823 view->AddLine(rect.LeftTop(), rect.RightTop(), lighten2);
825 view->AddLine(rect.LeftTop(), rect.LeftBottom() - BPoint(0, 1),
827 view->AddLine(rect.LeftBottom() + BPoint(1, 0), rect.RightBottom(),
836 BeControlLook::DrawMenuFieldFrame(BView* view, BRect& rect,
841 DrawMenuFieldFrame(view, rect, updateRect, 0, base, background, flags,
847 BeControlLook::DrawMenuFieldFrame(BView* view, BRect& rect,
852 DrawMenuFieldFrame(view, rect, updateRect, 0, 0, 0, 0, base,
858 BeControlLook::DrawMenuFieldFrame(BView* view, BRect& rect,
862 if (!ShouldDraw(view, rect, updateRect))
869 rect.InsetBy(2, 2);
875 view->AddLine(BPoint(rect.left - 1, rect.top - 1),
876 BPoint(rect.left - 1, rect.bottom - 1), darken2);
877 view->AddLine(BPoint(rect.left - 1, rect.top - 1),
878 BPoint(rect.right - 1, rect.top - 1), darken2);
879 view->AddLine(BPoint(rect.right, rect.top - 1),
880 BPoint(rect.right, rect.top - 1), darken2);
889 view->StrokeRect(rect.InsetByCopy(-1, -1));
895 BeControlLook::DrawMenuFieldBackground(BView* view, BRect& rect,
899 _DrawMenuFieldBackgroundOutside(view, rect, updateRect,
905 BeControlLook::DrawMenuFieldBackground(BView* view, BRect& rect,
909 _DrawMenuFieldBackgroundInside(view, rect, updateRect,
915 BeControlLook::DrawMenuFieldBackground(BView* view, BRect& rect,
919 _DrawMenuFieldBackgroundOutside(view, rect, updateRect, 0, 0,
925 BeControlLook::DrawMenuFieldBackground(BView* view, BRect& rect,
929 _DrawMenuFieldBackgroundOutside(view, rect, updateRect, 0, 0,
935 BeControlLook::DrawMenuBackground(BView* view, BRect& rect,
939 if (!ShouldDraw(view, rect, updateRect))
945 view->FillRect(rect);
952 BeControlLook::DrawMenuItemBackground(BView* view, BRect& rect,
956 if (!ShouldDraw(view, rect, updateRect))
962 view->FillRect(rect);
969 BeControlLook::DrawStatusBar(BView* view, BRect& rect, const BRect& updateRect,
972 if (!ShouldDraw(view, rect, updateRect))
979 view->FillRect(rect);
982 DrawTextControlBorder(view, rect, updateRect, tint_color(base, B_DARKEN_1_TINT));
985 BRect filledRect(rect);
987 BRect nonfilledRect(rect);
1021 BeControlLook::DrawSliderBar(BView* view, BRect rect, const BRect& updateRect,
1025 if (!ShouldDraw(view, rect, updateRect))
1030 BRect leftBarSide = rect;
1031 BRect rightBarSide = rect;
1034 sliderPosition = floorf(rect.left + 2 + (rect.Width() - 2)
1040 sliderPosition = floorf(rect.top + 2 + (rect.Height() - 2)
1049 DrawSliderBar(view, rect, updateRect, base, leftFillColor, flags,
1056 DrawSliderBar(view, rect, updateRect, base, rightFillColor, flags,
1063 BeControlLook::DrawSliderBar(BView* view, BRect rect, const BRect& updateRect,
1067 if (!ShouldDraw(view, rect, updateRect))
1071 view->FillRect(rect);
1080 view->AddLine(BPoint(rect.left, rect.top),
1081 BPoint(rect.left + 1, rect.top), darken1);
1082 view->AddLine(BPoint(rect.left, rect.bottom),
1083 BPoint(rect.left + 1, rect.bottom), darken1);
1084 view->AddLine(BPoint(rect.right - 1, rect.top),
1085 BPoint(rect.right, rect.top), darken1);
1087 view->AddLine(BPoint(rect.left + 1, rect.top),
1088 BPoint(rect.right - 1, rect.top), darken2);
1089 view->AddLine(BPoint(rect.left, rect.bottom - 1),
1090 BPoint(rect.left, rect.top + 1), darken2);
1092 view->AddLine(BPoint(rect.left + 1, rect.bottom),
1093 BPoint(rect.right, rect.bottom), lightenmax);
1094 view->AddLine(BPoint(rect.right, rect.top + 1),
1095 BPoint(rect.right, rect.bottom), lightenmax);
1097 rect.InsetBy(1, 1);
1099 view->AddLine(BPoint(rect.left, rect.top),
1100 BPoint(rect.left, rect.bottom), darkenmax);
1101 view->AddLine(BPoint(rect.left, rect.top),
1102 BPoint(rect.right, rect.top), darkenmax);
1109 BeControlLook::DrawSliderThumb(BView* view, BRect& rect, const BRect& updateRect,
1112 if (!ShouldDraw(view, rect, updateRect))
1123 view->AddLine(BPoint(rect.left, rect.bottom - 2),
1124 BPoint(rect.left, rect.top + 1), darker);
1125 view->AddLine(BPoint(rect.left + 1, rect.top),
1126 BPoint(rect.right - 2, rect.top), darker);
1127 view->AddLine(BPoint(rect.right, rect.top + 2),
1128 BPoint(rect.right, rect.bottom - 1), darker);
1129 view->AddLine(BPoint(rect.left + 2, rect.bottom),
1130 BPoint(rect.right - 1, rect.bottom), darker);
1133 rect.InsetBy(1, 1);
1136 view->FillRect(rect);
1138 view->AddLine(BPoint(rect.left, rect.bottom),
1139 BPoint(rect.right - 1, rect.bottom), darkenmax);
1140 view->AddLine(BPoint(rect.right, rect.bottom - 1),
1141 BPoint(rect.right, rect.top), darkenmax);
1143 rect.InsetBy(1, 1);
1147 view->AddLine(BPoint(rect.left, rect.bottom),
1148 BPoint(rect.right, rect.bottom), dark);
1149 view->AddLine(BPoint(rect.right, rect.top),
1150 BPoint(rect.right, rect.bottom), dark);
1153 float hCenter = rect.Width() / 2;
1154 float vMiddle = rect.Height() / 2;
1156 view->AddLine(BPoint(rect.left + hCenter, rect.top + 1),
1157 BPoint(rect.left + hCenter, rect.top + 1), dark);
1158 view->AddLine(BPoint(rect.left + hCenter, rect.top + 3),
1159 BPoint(rect.left + hCenter, rect.top + 3), dark);
1160 view->AddLine(BPoint(rect.left + hCenter, rect.top + 5),
1161 BPoint(rect.left + hCenter, rect.top + 5), dark);
1163 view->AddLine(BPoint(rect.left + 1, rect.top + vMiddle),
1164 BPoint(rect.left + 1, rect.top + vMiddle), dark);
1165 view->AddLine(BPoint(rect.left + 3, rect.top + vMiddle),
1166 BPoint(rect.left + 3, rect.top + vMiddle), dark);
1167 view->AddLine(BPoint(rect.left + 5, rect.top + vMiddle - 1),
1168 BPoint(rect.left + 5, rect.top + vMiddle), dark);
1171 view->AddLine(BPoint(rect.right + 1, rect.bottom + 1),
1172 BPoint(rect.right + 1, rect.bottom + 1), dark);
1174 rect.InsetBy(1, 1);
1177 view->AddLine(BPoint(rect.left, rect.bottom),
1178 BPoint(rect.right, rect.bottom), base);
1179 view->AddLine(BPoint(rect.right, rect.top),
1180 BPoint(rect.right, rect.bottom), base);
1187 BeControlLook::DrawSliderTriangle(BView* view, BRect& rect,
1191 DrawSliderTriangle(view, rect, updateRect, base, base, flags, orientation);
1196 BeControlLook::DrawSliderTriangle(BView* view, BRect& rect,
1200 if (!ShouldDraw(view, rect, updateRect))
1209 view->FillTriangle(BPoint(rect.left, rect.bottom - 1),
1210 BPoint(rect.left + 6, rect.top),
1211 BPoint(rect.right, rect.bottom - 1));
1214 view->StrokeLine(BPoint(rect.right, rect.bottom + 1),
1215 BPoint(rect.left, rect.bottom + 1));
1216 view->StrokeLine(BPoint(rect.right, rect.bottom),
1217 BPoint(rect.left + 6, rect.top));
1220 view->StrokeLine(BPoint(rect.right - 1, rect.bottom),
1221 BPoint(rect.left, rect.bottom));
1222 view->StrokeLine(BPoint(rect.left, rect.bottom),
1223 BPoint(rect.left + 5, rect.top + 1));
1226 view->StrokeLine(BPoint(rect.right - 2, rect.bottom - 1),
1227 BPoint(rect.left + 3, rect.bottom - 1));
1228 view->StrokeLine(BPoint(rect.right - 3, rect.bottom - 2),
1229 BPoint(rect.left + 6, rect.top + 1));
1232 view->FillTriangle(BPoint(rect.left + 1, rect.top),
1233 BPoint(rect.left + 7, rect.top + 6),
1234 BPoint(rect.left + 1, rect.bottom));
1237 view->StrokeLine(BPoint(rect.left, rect.top + 1),
1238 BPoint(rect.left, rect.bottom));
1239 view->StrokeLine(BPoint(rect.left + 1, rect.bottom),
1240 BPoint(rect.left + 7, rect.top + 6));
1243 view->StrokeLine(BPoint(rect.left, rect.top),
1244 BPoint(rect.left, rect.bottom - 1));
1245 view->StrokeLine(BPoint(rect.left + 1, rect.top),
1246 BPoint(rect.left + 6, rect.top + 5));
1249 view->StrokeLine(BPoint(rect.left + 1, rect.top + 2),
1250 BPoint(rect.left + 1, rect.bottom - 1));
1251 view->StrokeLine(BPoint(rect.left + 2, rect.bottom - 2),
1252 BPoint(rect.left + 6, rect.top + 6));
1258 BeControlLook::DrawSliderHashMarks(BView* view, BRect& rect,
1262 if (!ShouldDraw(view, rect, updateRect))
1282 factor = (rect.Width() - 2) / (hashMarkCount - 1);
1283 startPos = rect.left + 1;
1285 factor = (rect.Height() - 2) / (hashMarkCount - 1);
1286 startPos = rect.top + 1;
1295 view->AddLine(BPoint(pos, rect.top),
1296 BPoint(pos, rect.top + 4), darkColor);
1297 view->AddLine(BPoint(pos + 1, rect.top),
1298 BPoint(pos + 1, rect.top + 4), lightColor);
1305 view->AddLine(BPoint(rect.left, pos),
1306 BPoint(rect.left + 4, pos), darkColor);
1307 view->AddLine(BPoint(rect.left, pos + 1),
1308 BPoint(rect.left + 4, pos + 1), lightColor);
1323 view->AddLine(BPoint(pos, rect.bottom - 4),
1324 BPoint(pos, rect.bottom), darkColor);
1325 view->AddLine(BPoint(pos + 1, rect.bottom - 4),
1326 BPoint(pos + 1, rect.bottom), lightColor);
1333 view->AddLine(BPoint(rect.right - 4, pos),
1334 BPoint(rect.right, pos), darkColor);
1335 view->AddLine(BPoint(rect.right - 4, pos + 1),
1336 BPoint(rect.right, pos + 1), lightColor);
1348 BeControlLook::DrawTabFrame(BView* view, BRect& rect, const BRect& updateRect,
1353 view->FillRect(rect);
1361 view->AddLine(BPoint(rect.right, rect.top),
1362 BPoint(rect.right, rect.bottom), lightenmax);
1366 view->AddLine(BPoint(rect.left, rect.top),
1367 BPoint(rect.left, rect.bottom), lightenmax);
1372 view->AddLine(BPoint(rect.left, rect.bottom),
1373 BPoint(rect.right, rect.bottom), lightenmax);
1377 view->AddLine(BPoint(rect.left, rect.top),
1378 BPoint(rect.right, rect.top), lightenmax);
1387 BeControlLook::DrawActiveTab(BView* view, BRect& rect,
1391 if (!ShouldDraw(view, rect, updateRect))
1396 // clip draw rect to rect plus 2px
1397 view->ClipToRect(rect.InsetByCopy(-2, -2));
1413 view->AddLine(BPoint(rect.right - 1, rect.top - 1),
1414 BPoint(rect.right - 1, rect.top - 1), lightenmax);
1415 view->AddLine(BPoint(rect.right - 2, rect.top),
1416 BPoint(rect.right - 3, rect.top), lightenmax);
1419 view->AddLine(BPoint(rect.right - 4, rect.top + 1),
1420 BPoint(rect.left + 5, rect.top + 1), lightenmax);
1423 view->AddLine(BPoint(rect.left + 2, rect.top + 2),
1424 BPoint(rect.left + 4, rect.top + 2), lightenmax);
1425 view->AddLine(BPoint(rect.left + 1, rect.top + 3),
1426 BPoint(rect.left + 1, rect.top + 4 ), lightenmax);
1429 view->AddLine(BPoint(rect.left, rect.top + 5),
1430 BPoint(rect.left, rect.bottom - 5), lightenmax);
1433 view->AddLine(BPoint(rect.left + 1, rect.bottom - 4),
1434 BPoint(rect.left + 1, rect.bottom - 3), lightenmax);
1435 view->AddLine(BPoint(rect.left + 2, rect.bottom - 2),
1436 BPoint(rect.left + 3, rect.bottom - 2), darken4);
1439 view->AddLine(BPoint(rect.left + 4, rect.bottom - 1),
1440 BPoint(rect.right - 4, rect.bottom - 1), darken4);
1443 view->AddLine(BPoint(rect.right - 3, rect.bottom),
1444 BPoint(rect.right - 2, rect.bottom), darken4);
1445 view->AddLine(BPoint(rect.right - 1, rect.bottom + 1),
1446 BPoint(rect.right - 1, rect.bottom + 1), darken4);
1447 view->AddLine(BPoint(rect.right, rect.bottom + 2),
1448 BPoint(rect.right, rect.bottom + 2), darken4);
1453 view->AddLine(BPoint(rect.left - 1, rect.top - 1),
1454 BPoint(rect.left - 1, rect.top - 1), lightenmax);
1455 view->AddLine(BPoint(rect.left - 2, rect.top),
1456 BPoint(rect.left - 3, rect.top), lightenmax);
1459 view->AddLine(BPoint(rect.left - 4, rect.top + 1),
1460 BPoint(rect.right + 5, rect.top + 1), lightenmax);
1463 view->AddLine(BPoint(rect.right + 2, rect.top + 2),
1464 BPoint(rect.right + 4, rect.top + 2), lightenmax);
1465 view->AddLine(BPoint(rect.right + 1, rect.top + 3),
1466 BPoint(rect.right + 1, rect.top + 4 ), lightenmax);
1469 view->AddLine(BPoint(rect.right, rect.top + 5),
1470 BPoint(rect.right, rect.bottom - 5), lightenmax);
1473 view->AddLine(BPoint(rect.right + 1, rect.bottom - 4),
1474 BPoint(rect.right + 1, rect.bottom - 3), lightenmax);
1475 view->AddLine(BPoint(rect.right + 2, rect.bottom - 2),
1476 BPoint(rect.right + 3, rect.bottom - 2), darken4);
1479 view->AddLine(BPoint(rect.right + 4, rect.bottom - 1),
1480 BPoint(rect.left - 4, rect.bottom - 1), darken4);
1483 view->AddLine(BPoint(rect.left - 3, rect.bottom),
1484 BPoint(rect.left - 2, rect.bottom), darken4);
1485 view->AddLine(BPoint(rect.left - 1, rect.bottom + 1),
1486 BPoint(rect.left - 1, rect.bottom + 1), darken4);
1487 view->AddLine(BPoint(rect.left, rect.bottom + 2),
1488 BPoint(rect.left, rect.bottom + 2), darken4);
1494 view->AddLine(BPoint(rect.left - 1, rect.bottom - 1),
1495 BPoint(rect.left - 1, rect.bottom - 1), lightenmax);
1496 view->AddLine(BPoint(rect.left, rect.bottom - 2),
1497 BPoint(rect.left, rect.bottom - 3), lightenmax);
1500 view->AddLine(BPoint(rect.left + 1, rect.bottom - 4),
1501 BPoint(rect.left + 1, rect.top + 5), lightenmax);
1504 view->AddLine(BPoint(rect.left + 2, rect.top + 4),
1505 BPoint(rect.left + 2, rect.top + 2), lightenmax);
1506 view->AddLine(BPoint(rect.left + 3, rect.top + 1),
1507 BPoint(rect.left + 4, rect.top + 1), lightenmax);
1510 view->AddLine(BPoint(rect.left + 5, rect.top),
1511 BPoint(rect.right - 5, rect.top), lightenmax);
1514 view->AddLine(BPoint(rect.right - 4, rect.top + 1),
1515 BPoint(rect.right - 3, rect.top + 1), lightenmax);
1516 view->AddLine(BPoint(rect.right - 2, rect.top + 2),
1517 BPoint(rect.right - 2, rect.top + 3), darken4);
1520 view->AddLine(BPoint(rect.right - 1, rect.top + 4),
1521 BPoint(rect.right - 1, rect.bottom - 4), darken4);
1524 view->AddLine(BPoint(rect.right, rect.bottom - 3),
1525 BPoint(rect.right, rect.bottom - 2), darken4);
1526 view->AddLine(BPoint(rect.right + 1, rect.bottom - 1),
1527 BPoint(rect.right + 1, rect.bottom - 1), darken4);
1528 view->AddLine(BPoint(rect.right + 2, rect.bottom),
1529 BPoint(rect.right + 2, rect.bottom), darken4);
1534 view->AddLine(BPoint(rect.left - 1, rect.top - 1),
1535 BPoint(rect.left - 1, rect.top - 1), lightenmax);
1536 view->AddLine(BPoint(rect.left, rect.top - 2),
1537 BPoint(rect.left, rect.top - 3), lightenmax);
1540 view->AddLine(BPoint(rect.left + 1, rect.top - 4),
1541 BPoint(rect.left + 1, rect.bottom + 5), lightenmax);
1544 view->AddLine(BPoint(rect.left + 2, rect.bottom + 4),
1545 BPoint(rect.left + 2, rect.bottom + 2), lightenmax);
1546 view->AddLine(BPoint(rect.left + 3, rect.bottom + 1),
1547 BPoint(rect.left + 4, rect.bottom + 1), lightenmax);
1550 view->AddLine(BPoint(rect.left + 5, rect.bottom),
1551 BPoint(rect.right - 5, rect.bottom), lightenmax);
1554 view->AddLine(BPoint(rect.right - 4, rect.bottom + 1),
1555 BPoint(rect.right - 3, rect.bottom + 1), lightenmax);
1556 view->AddLine(BPoint(rect.right - 2, rect.bottom + 2),
1557 BPoint(rect.right - 2, rect.bottom + 3), darken4);
1560 view->AddLine(BPoint(rect.right - 1, rect.bottom + 4),
1561 BPoint(rect.right - 1, rect.top - 4), darken4);
1564 view->AddLine(BPoint(rect.right, rect.top - 3),
1565 BPoint(rect.right, rect.top - 2), darken4);
1566 view->AddLine(BPoint(rect.right + 1, rect.top - 1),
1567 BPoint(rect.right + 1, rect.top - 1), darken4);
1568 view->AddLine(BPoint(rect.right + 2, rect.top),
1569 BPoint(rect.right + 2, rect.top), darken4);
1578 view->AddLine(BPoint(rect.right, rect.top - 1),
1579 BPoint(rect.right, rect.bottom + 1), base);
1583 view->AddLine(BPoint(rect.left, rect.top - 1),
1584 BPoint(rect.left, rect.bottom + 1), base);
1589 view->AddLine(BPoint(rect.left - 1, rect.bottom),
1590 BPoint(rect.right + 1, rect.bottom), base);
1594 view->AddLine(BPoint(rect.left - 1, rect.top),
1595 BPoint(rect.right + 1, rect.top), base);
1600 // inset rect for view contents
1601 rect.InsetBy(2, 2);
1608 BeControlLook::DrawInactiveTab(BView* view, BRect& rect,
1613 if (!ShouldDraw(view, rect, updateRect))
1621 // clip draw rect to rect plus 2px
1622 view->ClipToRect(rect.InsetByCopy(-2, -2));
1640 view->AddLine(BPoint(rect.right - 1, rect.top - 1),
1641 BPoint(rect.right - 1, rect.top - 1), lightenmax);
1642 view->AddLine(BPoint(rect.right - 2, rect.top),
1643 BPoint(rect.right - 3, rect.top), lightenmax);
1647 view->AddLine(BPoint(rect.right - 4, rect.top + 1),
1648 BPoint(rect.left + 5, rect.top + 1), lightenmax);
1651 view->AddLine(BPoint(rect.left + 2, rect.top + 2),
1652 BPoint(rect.left + 4, rect.top + 2), lightenmax);
1653 view->AddLine(BPoint(rect.left + 1, rect.top + 3),
1654 BPoint(rect.left + 1, rect.top + 4 ), lightenmax);
1657 view->AddLine(BPoint(rect.left, rect.top + 5),
1658 BPoint(rect.left, rect.bottom - 5), lightenmax);
1661 view->AddLine(BPoint(rect.left + 1, rect.bottom - 4),
1662 BPoint(rect.left + 1, rect.bottom - 3), lightenmax);
1663 view->AddLine(BPoint(rect.left + 2, rect.bottom - 2),
1664 BPoint(rect.left + 3, rect.bottom - 2), darken4);
1667 view->AddLine(BPoint(rect.left + 4, rect.bottom - 1),
1668 BPoint(rect.right - 4, rect.bottom - 1), darken4);
1673 view->AddLine(BPoint(rect.right - 3, rect.bottom),
1674 BPoint(rect.right - 2, rect.bottom), darken4);
1675 view->AddLine(BPoint(rect.right - 1, rect.bottom + 1),
1676 BPoint(rect.right - 1, rect.bottom + 1), darken4);
1684 view->AddLine(BPoint(rect.left - 1, rect.top - 1),
1685 BPoint(rect.left - 1, rect.top - 1), lightenmax);
1686 view->AddLine(BPoint(rect.left - 2, rect.top),
1687 BPoint(rect.left - 3, rect.top), lightenmax);
1691 view->AddLine(BPoint(rect.left - 4, rect.top + 1),
1692 BPoint(rect.right + 5, rect.top + 1), lightenmax);
1695 view->AddLine(BPoint(rect.right + 2, rect.top + 2),
1696 BPoint(rect.right + 4, rect.top + 2), lightenmax);
1697 view->AddLine(BPoint(rect.right + 1, rect.top + 3),
1698 BPoint(rect.right + 1, rect.top + 4 ), lightenmax);
1701 view->AddLine(BPoint(rect.right, rect.top + 5),
1702 BPoint(rect.right, rect.bottom - 5), lightenmax);
1705 view->AddLine(BPoint(rect.right + 1, rect.bottom - 4),
1706 BPoint(rect.right + 1, rect.bottom - 3), lightenmax);
1707 view->AddLine(BPoint(rect.right + 2, rect.bottom - 2),
1708 BPoint(rect.right + 3, rect.bottom - 2), darken4);
1711 view->AddLine(BPoint(rect.right + 4, rect.bottom - 1),
1712 BPoint(rect.left - 4, rect.bottom - 1), darken4);
1717 view->AddLine(BPoint(rect.left - 3, rect.bottom),
1718 BPoint(rect.left - 2, rect.bottom), darken4);
1719 view->AddLine(BPoint(rect.left - 1, rect.bottom + 1),
1720 BPoint(rect.left - 1, rect.bottom + 1), darken4);
1729 view->AddLine(BPoint(rect.left - 1, rect.bottom - 1),
1730 BPoint(rect.left - 1, rect.bottom - 1), lightenmax);
1731 view->AddLine(BPoint(rect.left, rect.bottom - 2),
1732 BPoint(rect.left, rect.bottom - 3), lightenmax);;
1736 view->AddLine(BPoint(rect.left + 1, rect.bottom - 4),
1737 BPoint(rect.left + 1, rect.top + 5), lightenmax);
1740 view->AddLine(BPoint(rect.left + 2, rect.top + 4),
1741 BPoint(rect.left + 2, rect.top + 2), lightenmax);
1742 view->AddLine(BPoint(rect.left + 3, rect.top + 1),
1743 BPoint(rect.left + 4, rect.top + 1), lightenmax);
1746 view->AddLine(BPoint(rect.left + 5, rect.top),
1747 BPoint(rect.right - 5, rect.top), lightenmax);
1750 view->AddLine(BPoint(rect.right - 4, rect.top + 1),
1751 BPoint(rect.right - 3, rect.top + 1), lightenmax);
1752 view->AddLine(BPoint(rect.right - 2, rect.top + 2),
1753 BPoint(rect.right - 2, rect.top + 3), darken4);
1756 view->AddLine(BPoint(rect.right - 1, rect.top + 4),
1757 BPoint(rect.right - 1, rect.bottom - 4), darken4);
1762 view->AddLine(BPoint(rect.right, rect.bottom - 3),
1763 BPoint(rect.right, rect.bottom - 2), darken4);
1764 view->AddLine(BPoint(rect.right + 1, rect.bottom - 1),
1765 BPoint(rect.right + 1, rect.bottom - 1), darken4);
1773 view->AddLine(BPoint(rect.left - 1, rect.top - 1),
1774 BPoint(rect.left - 1, rect.top - 1), lightenmax);
1775 view->AddLine(BPoint(rect.left, rect.top - 2),
1776 BPoint(rect.left, rect.top - 3), lightenmax);
1780 view->AddLine(BPoint(rect.left + 1, rect.top - 4),
1781 BPoint(rect.left + 1, rect.bottom + 5), lightenmax);
1784 view->AddLine(BPoint(rect.left + 2, rect.bottom + 4),
1785 BPoint(rect.left + 2, rect.bottom + 2), lightenmax);
1786 view->AddLine(BPoint(rect.left + 3, rect.bottom + 1),
1787 BPoint(rect.left + 4, rect.bottom + 1), lightenmax);
1790 view->AddLine(BPoint(rect.left + 5, rect.bottom),
1791 BPoint(rect.right - 5, rect.bottom), lightenmax);
1794 view->AddLine(BPoint(rect.right - 4, rect.bottom + 1),
1795 BPoint(rect.right - 3, rect.bottom + 1), lightenmax);
1796 view->AddLine(BPoint(rect.right - 2, rect.bottom + 2),
1797 BPoint(rect.right - 2, rect.bottom + 3), darken4);
1800 view->AddLine(BPoint(rect.right - 1, rect.bottom + 4),
1801 BPoint(rect.right - 1, rect.top - 4), darken4);
1806 view->AddLine(BPoint(rect.right, rect.top - 3),
1807 BPoint(rect.right, rect.top - 2), darken4);
1808 view->AddLine(BPoint(rect.right + 1, rect.top - 1),
1809 BPoint(rect.right + 1, rect.top - 1), darken4);
1816 // inset rect for view contents
1817 rect.InsetBy(2, 2);
1824 BeControlLook::DrawSplitter(BView* view, BRect& rect, const BRect& updateRect,
1828 if (!ShouldDraw(view, rect, updateRect))
1841 if (borders != 0 && rect.Width() > 3 && rect.Height() > 3)
1842 DrawRaisedBorder(view, rect, updateRect, background, flags, borders);
1846 if (rect.Width() > 2) {
1848 BRegion region(rect);
1849 rect.left = floorf((rect.left + rect.right) / 2.0 - 0.5);
1850 rect.right = rect.left + 1;
1851 region.Exclude(rect);
1856 BPoint dot = rect.LeftTop();
1857 BPoint stop = rect.LeftBottom();
1889 if (rect.Height() > 2) {
1891 BRegion region(rect);
1892 rect.top = floorf((rect.top + rect.bottom) / 2.0 - 0.5);
1893 rect.bottom = rect.top + 1;
1894 region.Exclude(rect);
1899 BPoint dot = rect.LeftTop();
1900 BPoint stop = rect.RightTop();
1939 BeControlLook::DrawBorder(BView* view, BRect& rect, const BRect& updateRect,
1946 if (!ShouldDraw(view, rect, updateRect))
1951 view->ClipToRect(rect);
1967 view->AddLine(rect.LeftBottom(), rect.LeftTop(), shadowColor);
1968 rect.left++;
1971 view->AddLine(rect.LeftTop(), rect.RightTop(), shadowColor);
1972 rect.top++;
1975 view->AddLine(rect.RightTop(), rect.RightBottom(), shadowColor);
1976 rect.right--;
1979 view->AddLine(rect.RightBottom(), rect.LeftBottom(), shadowColor);
1980 rect.bottom--;
1984 view->AddLine(rect.LeftBottom(), rect.LeftTop(), lightColor);
1985 rect.left++;
1988 view->AddLine(rect.LeftTop(), rect.RightTop(), lightColor);
1989 rect.top++;
1992 view->AddLine(rect.RightTop(), rect.RightBottom(), lightColor);
1993 rect.right--;
1996 view->AddLine(rect.RightBottom(), rect.LeftBottom(), lightColor);
1997 rect.bottom--;
2001 view->AddLine(rect.LeftBottom(), rect.LeftTop(), shadowColor);
2002 rect.left++;
2005 view->AddLine(rect.LeftTop(), rect.RightTop(), shadowColor);
2006 rect.top++;
2009 view->AddLine(rect.RightTop(), rect.RightBottom(), shadowColor);
2010 rect.right--;
2013 view->AddLine(rect.RightBottom(), rect.LeftBottom(), shadowColor);
2014 rect.bottom--;
2018 view->AddLine(rect.LeftBottom(), rect.LeftTop(), lightColor);
2019 rect.left++;
2022 view->AddLine(rect.LeftTop(), rect.RightTop(), lightColor);
2023 rect.top++;
2026 view->AddLine(rect.RightTop(), rect.RightBottom(), lightColor);
2027 rect.right--;
2030 view->AddLine(rect.RightBottom(), rect.LeftBottom(), lightColor);
2031 rect.bottom--;
2042 BeControlLook::DrawRaisedBorder(BView* view, BRect& rect,
2046 if (!ShouldDraw(view, rect, updateRect))
2051 view->ClipToRect(rect);
2067 view->AddLine(rect.LeftBottom(), rect.LeftTop(), lightColor);
2068 rect.left++;
2071 view->AddLine(rect.LeftTop(), rect.RightTop(), lightColor);
2072 rect.top++;
2075 view->AddLine(rect.RightTop(), rect.RightBottom(), lightColor);
2076 rect.right--;
2079 view->AddLine(rect.RightBottom(), rect.LeftBottom(), lightColor);
2080 rect.bottom--;
2084 view->AddLine(rect.LeftBottom(), rect.LeftTop(), shadowColor);
2085 rect.left++;
2088 view->AddLine(rect.LeftTop(), rect.RightTop(), shadowColor);
2089 rect.top++;
2092 view->AddLine(rect.RightTop(), rect.RightBottom(), shadowColor);
2093 rect.right--;
2096 view->AddLine(rect.RightBottom(), rect.LeftBottom(), shadowColor);
2097 rect.bottom--;
2107 BeControlLook::DrawTextControlBorder(BView* view, BRect& rect,
2111 if (!ShouldDraw(view, rect, updateRect))
2116 view->ClipToRect(rect);
2129 _DrawFrame(view, rect, dark, dark, light, light);
2135 view->StrokeRect(rect);
2136 rect.InsetBy(1, 1);
2141 _DrawFrame(view, rect, dark, dark, light, light);
2149 BeControlLook::DrawGroupFrame(BView* view, BRect& rect, const BRect& updateRect,
2152 DrawBorder(view, rect, updateRect, base, B_FANCY_BORDER, 0, borders);
2160 BeControlLook::DrawLabel(BView* view, const char* label, BRect rect,
2164 DrawLabel(view, label, NULL, rect, updateRect, base, flags,
2170 BeControlLook::DrawLabel(BView* view, const char* label, BRect rect,
2174 DrawLabel(view, label, NULL, rect, updateRect, base, flags, alignment,
2317 BRect rect, const BRect& updateRect, const rgb_color& base, uint32 flags,
2320 if (!ShouldDraw(view, rect, updateRect))
2329 rect.OffsetByCopy(-2, -2),
2340 float availableWidth = rect.Width() + 1;
2368 BRect alignedRect(BLayoutUtils::AlignOnRect(rect,
2474 BeControlLook::DrawButtonWithPopUpBackground(BView* view, BRect& rect,
2478 _DrawButtonBackground(view, rect, updateRect, 0.0f, 0.0f, 0.0f, 0.0f,
2484 BeControlLook::DrawButtonWithPopUpBackground(BView* view, BRect& rect,
2488 _DrawButtonBackground(view, rect, updateRect, radius, radius, radius,
2494 BeControlLook::DrawButtonWithPopUpBackground(BView* view, BRect& rect,
2499 _DrawButtonBackground(view, rect, updateRect, leftTopRadius,
2509 BeControlLook::_DrawButtonFrame(BView* view, BRect& rect,
2514 if (!ShouldDraw(view, rect, updateRect))
2519 view->ClipToRect(rect);
2599 view->AddLine(BPoint(rect.left, rect.top + 1),
2600 BPoint(rect.left, rect.bottom - 1), dark2BorderColor);
2601 rect.left++;
2604 view->AddLine(BPoint(rect.left, rect.top),
2605 BPoint(rect.right - 1, rect.top), dark2BorderColor);
2606 rect.top++;
2609 view->AddLine(BPoint(rect.right, rect.top),
2610 BPoint(rect.right, rect.bottom - 1), dark2BorderColor);
2611 rect.right--;
2614 view->AddLine(BPoint(rect.left, rect.bottom),
2615 BPoint(rect.right, rect.bottom), dark2BorderColor);
2616 rect.bottom--;
2622 view->StrokeRect(rect);
2624 rect.InsetBy(1, 1);
2628 view->FillRect(rect);
2630 rect.InsetBy(2, 2);
2635 view->AddLine(BPoint(rect.left, rect.top + 1),
2636 BPoint(rect.left, rect.bottom - 1), darken1);
2637 rect.left++;
2640 view->AddLine(BPoint(rect.left, rect.top),
2641 BPoint(rect.right - 1, rect.top), darken1);
2642 rect.top++;
2645 view->AddLine(BPoint(rect.right, rect.top),
2646 BPoint(rect.right, rect.bottom - 1), darken1);
2647 rect.right--;
2650 view->AddLine(BPoint(rect.left, rect.bottom),
2651 BPoint(rect.right, rect.bottom), darken1);
2652 rect.bottom--;
2658 view->FillRect(rect);
2660 rect.InsetBy(3, 3);
2664 rect.InsetBy(1, 0);
2669 view->StrokeRect(rect);
2674 view->AddLine(BPoint(rect.left, rect.top + 1),
2675 BPoint(rect.left, rect.bottom - 1),
2677 view->AddLine(BPoint(rect.left + 1, rect.top),
2678 BPoint(rect.right - 1, rect.top),
2680 view->AddLine(BPoint(rect.right, rect.top + 1),
2681 BPoint(rect.right, rect.bottom - 1),
2683 view->AddLine(BPoint(rect.left + 1, rect.bottom),
2684 BPoint(rect.right - 1, rect.bottom),
2688 rect.InsetBy(1, 1);
2691 view->AddLine(rect.LeftBottom(), rect.LeftTop(), bevelColor2);
2692 view->AddLine(rect.LeftTop(), rect.RightTop(), bevelColor2);
2693 view->AddLine(BPoint(rect.right, rect.top + 1), rect.RightBottom(),
2695 view->AddLine(rect.RightBottom(), BPoint(rect.left + 1, rect.bottom),
2699 rect.InsetBy(1, 1);
2702 view->AddLine(BPoint(rect.left, rect.bottom + 1), rect.LeftTop(),
2704 view->AddLine(rect.LeftTop(), rect.RightTop(), lightenMax);
2705 view->AddLine(rect.RightTop(), rect.RightBottom(), base);
2706 view->AddLine(rect.RightBottom(), BPoint(rect.left + 1, rect.bottom),
2710 rect.InsetBy(1, 1);
2713 view->AddLine(BPoint(rect.left, rect.bottom + 1), rect.LeftTop(),
2715 view->AddLine(rect.LeftTop(), rect.RightTop(), lightenMax);
2716 view->AddLine(rect.RightTop(), rect.RightBottom(), buttonBgColor);
2717 view->AddLine(rect.RightBottom(), BPoint(rect.left + 1, rect.bottom),
2721 rect.InsetBy(1, 1);
2730 BeControlLook::_DrawButtonBackground(BView* view, BRect& rect,
2734 if (!ShouldDraw(view, rect, updateRect))
2739 view->FillRect(rect);
2745 // invert if clicked without altering rect
2746 BRect invertRect(rect.InsetByCopy(-3, -3));
2754 BeControlLook::_DrawPopUpMarker(BView* view, const BRect& rect,
2759 BPoint position(rect.right - 8, rect.bottom - 8);
2780 BeControlLook::_DrawMenuFieldBackgroundOutside(BView* view, BRect& rect,
2784 if (!ShouldDraw(view, rect, updateRect))
2789 BRect rightRect(rect);
2790 rightRect.left = rect.right - 10;
2792 _DrawMenuFieldBackgroundInside(view, rect, updateRect,
2796 _DrawMenuFieldBackgroundInside(view, rect, updateRect, 0, 0,
2803 BeControlLook::_DrawMenuFieldBackgroundInside(BView* view, BRect& rect,
2807 if (!ShouldDraw(view, rect, updateRect))
2812 view->ClipToRect(rect);
2837 view->FillRect(rect);
2844 view->AddLine(BPoint(rect.left, rect.bottom),
2845 BPoint(rect.left - 1, rect.bottom), darken4);
2848 view->AddLine(BPoint(rect.left, rect.bottom),
2849 BPoint(rect.right, rect.bottom), darken4);
2851 view->AddLine(BPoint(rect.right, rect.bottom - 1),
2852 BPoint(rect.right, rect.top), darken4);
2854 view->AddLine(BPoint(rect.left, rect.top),
2855 BPoint(rect.right - 2, rect.top), lighten2);
2857 rect.top += 1;
2858 rect.bottom -= 1;
2859 rect.right -= 1;
2862 view->AddLine(BPoint(rect.left, rect.bottom),
2863 BPoint(rect.right, rect.bottom), darken1);
2865 view->AddLine(BPoint(rect.right, rect.bottom - 1),
2866 BPoint(rect.right, rect.top), darken1);
2870 rect.bottom -= 1;
2871 rect.right -= 1;
2873 view->FillRect(rect);
2880 BeControlLook::_DrawScrollBarBackgroundFirst(BView* view, BRect& rect,
2884 if (!ShouldDraw(view, rect, updateRect))
2889 view->ClipToRect(rect);
2892 BRect orig(rect);
2917 view->AddLine(rect.LeftTop(), rect.LeftBottom(),
2919 rect.left++;
2920 view->AddLine(rect.LeftTop(), rect.LeftBottom(), shadow);
2921 rect.left++;
2923 view->AddLine(rect.LeftTop(), rect.RightTop(),
2925 rect.top++;
2926 view->AddLine(rect.LeftTop(), rect.RightTop(), shadow);
2927 rect.top++;
2929 view->AddLine(rect.RightTop(), rect.RightBottom(), base);
2930 rect.right--;
2933 view->AddLine(rect.LeftTop(), rect.LeftBottom(), shadow);
2934 rect.left++;
2935 view->AddLine(rect.LeftTop(), rect.LeftBottom(), shadow);
2936 rect.left++;
2938 view->AddLine(rect.LeftTop(), rect.RightTop(), shadow);
2939 rect.top++;
2940 view->AddLine(rect.LeftTop(), rect.RightTop(), shadow);
2941 rect.top++;
2943 view->AddLine(rect.LeftBottom(), rect.RightBottom(), base);
2944 rect.bottom--;
2950 view->FillRect(rect);
2952 rect = orig;
2958 view->AddLine(rect.LeftTop(), rect.RightTop(), border);
2960 view->AddLine(rect.LeftBottom(), rect.RightBottom(), border);
2963 view->AddLine(rect.LeftTop(), rect.LeftBottom(), border);
2965 view->AddLine(rect.RightTop(), rect.RightBottom(), border);
2974 BeControlLook::_DrawScrollBarBackgroundSecond(BView* view, BRect& rect,
2978 if (!ShouldDraw(view, rect, updateRect))
2983 view->ClipToRect(rect);
2987 BRect orig(rect);
3013 // left shadow (no top shadow on second rect)
3014 view->AddLine(rect.LeftTop(), rect.LeftBottom(),
3016 rect.left++;
3017 view->AddLine(rect.LeftTop(), rect.LeftBottom(), shadow);
3018 rect.left++;
3020 view->AddLine(rect.RightTop(), rect.RightBottom(), base);
3021 rect.right--;
3023 // left shadow (no top shadow on second rect)
3024 view->AddLine(rect.LeftTop(), rect.RightTop(),
3026 rect.top++;
3027 view->AddLine(rect.LeftTop(), rect.RightTop(), shadow);
3028 rect.top++;
3030 view->AddLine(rect.LeftBottom(), rect.RightBottom(), base);
3031 rect.bottom--;
3037 view->FillRect(rect);
3039 rect = orig;
3045 view->AddLine(rect.LeftTop(), rect.RightTop(), darkBorder);
3047 view->AddLine(rect.LeftBottom(), rect.RightBottom(), border);
3050 view->AddLine(rect.LeftTop(), rect.LeftBottom(), darkBorder);
3052 view->AddLine(rect.RightTop(), rect.RightBottom(), border);
3110 BeControlLook::_DrawFrame(BView* view, BRect& rect, const rgb_color& left,
3120 BPoint(rect.left, rect.bottom),
3121 BPoint(rect.right, rect.bottom), bottom);
3122 rect.bottom--;
3126 BPoint(rect.right, rect.top),
3127 BPoint(rect.right, rect.bottom), right);
3128 rect.right--;
3132 BPoint(rect.left, rect.top),
3133 BPoint(rect.right, rect.top), top);
3134 rect.top++;
3138 BPoint(rect.left, rect.bottom),
3139 BPoint(rect.left, rect.top), left);
3140 rect.left++;