Lines Matching refs:rect

944 	BRect rect(fPrivateData->fThumbFrame);
950 if (rect.left > thumbBG.left) {
953 rect.left > thumbBG.left + 1 ? dark4 : dark);
955 if (rect.left > thumbBG.left + 1) {
959 BPoint(rect.left - 1, thumbBG.top), dark2);
960 AddLine(BPoint(rect.left - 1, thumbBG.bottom),
964 if (rect.right < thumbBG.right - 1) {
965 AddLine(BPoint(rect.right + 2, thumbBG.top + 1),
966 BPoint(rect.right + 2, thumbBG.bottom), dark2);
967 AddLine(BPoint(rect.right + 1, thumbBG.top),
970 BPoint(rect.right + 3, thumbBG.bottom), normal);
972 if (rect.right < thumbBG.right) {
981 if (rect.top > thumbBG.top) {
984 rect.top > thumbBG.top + 1 ? dark4 : dark);
986 if (rect.top > thumbBG.top + 1) {
989 AddLine(BPoint(thumbBG.left, rect.top - 1),
991 AddLine(BPoint(thumbBG.right, rect.top - 1),
995 if (rect.bottom < thumbBG.bottom - 1) {
996 AddLine(BPoint(thumbBG.left + 1, rect.bottom + 2),
997 BPoint(thumbBG.right, rect.bottom + 2), dark2);
998 AddLine(BPoint(thumbBG.left, rect.bottom + 1),
1000 AddLine(BPoint(thumbBG.right, rect.bottom + 3),
1003 if (rect.bottom < thumbBG.bottom) {
1020 BRect leftOfThumb(thumbBG.left, thumbBG.top, rect.left - 1,
1022 BRect rightOfThumb(rect.right + 1, thumbBG.top, thumbBG.right,
1029 thumbBG.right, rect.top - 1);
1031 BRect bottomOfThumb(thumbBG.left, rect.bottom + 1,
1045 BRect leftOfThumb(thumbBG.left + 1, thumbBG.top, rect.left - 1,
1050 BRect rightOfThumb(rect.right + 3, thumbBG.top, thumbBG.right,
1056 if (rect.left > thumbBG.left) {
1058 StrokeLine(BPoint(rect.left - 1, rect.top),
1059 BPoint(rect.left - 1, rect.bottom));
1061 if (rect.right < thumbBG.right) {
1063 StrokeLine(BPoint(rect.right + 1, rect.top),
1064 BPoint(rect.right + 1, rect.bottom));
1068 thumbBG.right, rect.top - 1);
1072 BRect bottomOfThumb(thumbBG.left, rect.bottom + 3,
1078 if (rect.top > thumbBG.top) {
1080 StrokeLine(BPoint(rect.left, rect.top - 1),
1081 BPoint(rect.right, rect.top - 1));
1083 if (rect.bottom < thumbBG.bottom) {
1085 StrokeLine(BPoint(rect.left, rect.bottom + 1),
1086 BPoint(rect.right, rect.bottom + 1));
1093 be_control_look->DrawButtonBackground(this, rect, updateRect,
1097 AddLine(BPoint(rect.left, rect.bottom),
1098 BPoint(rect.left, rect.top), light);
1099 AddLine(BPoint(rect.left + 1, rect.top),
1100 BPoint(rect.right, rect.top), light);
1101 AddLine(BPoint(rect.right, rect.top + 1),
1102 BPoint(rect.right, rect.bottom), dark1);
1103 AddLine(BPoint(rect.right - 1, rect.bottom),
1104 BPoint(rect.left + 1, rect.bottom), dark1);
1108 rect.InsetBy(1.0, 1.0);
1114 FillRect(rect);
1130 besidesThumb.right = rect.left - 1;
1133 besidesThumb.left = rect.right + 1;
1139 besidesThumb.bottom = rect.top - 1;
1142 besidesThumb.top = rect.bottom + 1;
1148 AddLine(BPoint(rect.left, rect.bottom),
1149 BPoint(rect.left, rect.top), light);
1150 AddLine(BPoint(rect.left + 1, rect.top),
1151 BPoint(rect.right, rect.top), light);
1152 AddLine(BPoint(rect.right, rect.top + 1),
1153 BPoint(rect.right, rect.bottom), dark2);
1154 AddLine(BPoint(rect.right - 1, rect.bottom),
1155 BPoint(rect.left + 1, rect.bottom), dark2);
1158 rect.InsetBy(1.0, 1.0);
1160 FillRect(rect);
1521 BRect rect(bounds.left, bounds.top,
1525 if (rect.Contains(where))
1528 rect.OffsetBy(0.0, buttonSize);
1529 if (rect.Contains(where))
1531 rect.OffsetTo(bounds.left, bounds.bottom - 2 * buttonSize);
1532 if (rect.Contains(where))
1535 rect.OffsetTo(bounds.left, bounds.bottom - buttonSize);
1536 if (rect.Contains(where))
1539 if (rect.Contains(where))
1542 rect.OffsetBy(buttonSize, 0.0);
1543 if (rect.Contains(where))
1545 rect.OffsetTo(bounds.right - 2 * buttonSize, bounds.top);
1546 if (rect.Contains(where))
1549 rect.OffsetTo(bounds.right - buttonSize, bounds.top);
1550 if (rect.Contains(where))
1571 BRect rect(bounds.left, bounds.top,
1579 rect.OffsetBy(0.0, buttonSize);
1582 rect.OffsetTo(bounds.left, bounds.bottom - 2 * buttonSize + 1);
1585 rect.OffsetTo(bounds.left, bounds.bottom - buttonSize + 1);
1593 rect.OffsetBy(buttonSize, 0.0);
1596 rect.OffsetTo(bounds.right - 2 * buttonSize + 1, bounds.top);
1599 rect.OffsetTo(bounds.right - buttonSize + 1, bounds.top);
1604 return rect;