Lines Matching refs:rect

477             scaled_rect = GetScaledRect(item->rect);  in OnPaint()
525 dirty = GetScaledRect(mpDragItem->rect); in OnLButtonDown()
599 CRect scaled_rect = GetScaledRect(mpDragItem->rect); in OnSetFocus()
616 CRect scaled_rect = GetScaledRect(mpDragItem->rect); in OnKillFocus()
652 scaled_rect = GetScaledRect(item->rect); in FindFirstVisibleItem()
706 CRect scaled_rect = GetScaledRect(mpDragItem ->rect); in SelectFlowItem()
744 shift_x = left - mpDragItem->rect.left; in ShiftLeft()
746 else if (mpDragItem->rect.left + shift_x >= mpDragItem->rect.right - MIN_SCREEN_BOX_SIZE) in ShiftLeft()
749 shift_x = mpDragItem->rect.right - MIN_SCREEN_BOX_SIZE - mpDragItem->rect.left; in ShiftLeft()
755 mpDragItem->rect.left += shift_x; in ShiftLeft()
774 shift_y = top - mpDragItem->rect.top; in ShiftTop()
776 else if (mpDragItem->rect.top + shift_y >= mpDragItem->rect.bottom - MIN_SCREEN_BOX_SIZE) in ShiftTop()
779 shift_y = mpDragItem->rect.bottom - MIN_SCREEN_BOX_SIZE - mpDragItem->rect.top; in ShiftTop()
785 mpDragItem->rect.top += shift_y; in ShiftTop()
804 shift_x = right - mpDragItem->rect.right; in ShiftRight()
806 else if (mpDragItem->rect.right + shift_x <= mpDragItem->rect.left + MIN_SCREEN_BOX_SIZE) in ShiftRight()
809 shift_x = mpDragItem->rect.left + MIN_SCREEN_BOX_SIZE - mpDragItem->rect.right; in ShiftRight()
815 mpDragItem->rect.right += shift_x; in ShiftRight()
834 shift_y = bottom - mpDragItem->rect.bottom; in ShiftBottom()
837 if (mpDragItem->rect.bottom + shift_y <= mpDragItem->rect.top + MIN_SCREEN_BOX_SIZE) in ShiftBottom()
840 shift_y = mpDragItem->rect.top + MIN_SCREEN_BOX_SIZE - mpDragItem->rect.bottom; in ShiftBottom()
846 mpDragItem->rect.bottom += shift_y; in ShiftBottom()
876 CRect scaled_rect = GetScaledRect(mpDragItem->rect); in OnMouseMove()
891 shift_x = left - mpDragItem->rect.left; in OnMouseMove()
896 mpDragItem->rect.left += shift_x; in OnMouseMove()
897 mpDragItem->rect.right += shift_x; in OnMouseMove()
909 shift_y = top - mpDragItem->rect.top; in OnMouseMove()
914 mpDragItem->rect.top += shift_y; in OnMouseMove()
915 mpDragItem->rect.bottom += shift_y; in OnMouseMove()
1079 CRect screen_flow_diagram_win::GetScaledRect(CRect rect) in GetScaledRect() argument
1083 scaled.left = rect.left * mScale / 100; in GetScaledRect()
1084 scaled.top = rect.top * mScale / 100; in GetScaledRect()
1085 scaled.right = rect.right * mScale / 100; in GetScaledRect()
1086 scaled.bottom = rect.bottom * mScale / 100; in GetScaledRect()
1130 if (item->rect.right > mDisplayWidth) in UpdateDisplaySize()
1132 mDisplayWidth = item->rect.right; in UpdateDisplaySize()
1135 if (item->rect.bottom > mDisplayHeight) in UpdateDisplaySize()
1137 mDisplayHeight = item->rect.bottom; in UpdateDisplaySize()
1152 CRect rect = GetScaledRect(mpDragItem->rect); in SelectedVisible() local
1154 rect.MoveToXY(CPoint(rect.left - scrollpos.cx, rect.top - scrollpos.cy)); in SelectedVisible()
1160 if ((rect.right > client.right) && (rect.left > client.left)) in SelectedVisible()
1164 scrollpos.cx += (rect.right - client.right); in SelectedVisible()
1168 else if ((rect.left < client.left) && (rect.right < client.right)) in SelectedVisible()
1170 scrollpos.cx += (rect.left - client.left); in SelectedVisible()
1175 if ((rect.bottom > client.bottom) && (rect.top > client.top)) in SelectedVisible()
1178 scrollpos.cy += (rect.bottom - client.bottom); in SelectedVisible()
1182 else if ((rect.top < client.top) && (rect.bottom < client.bottom)) in SelectedVisible()
1184 scrollpos.cy += (rect.top - client.top); in SelectedVisible()
1195 InvalidateRect(&rect); in SelectedVisible()
1223 if (mpDragItem->rect.top + MIN_SCREEN_BOX_SIZE >= mpDragItem->rect.bottom) in HandleKeydown()
1227 mpDragItem->rect.bottom--; in HandleKeydown()
1231 if (mpDragItem->rect.top < 1) in HandleKeydown()
1235 mpDragItem->rect.top -= 1; in HandleKeydown()
1236 mpDragItem->rect.bottom -= 1; in HandleKeydown()
1244 mpDragItem->rect.bottom++; in HandleKeydown()
1248 mpDragItem->rect.top += 1; in HandleKeydown()
1249 mpDragItem->rect.bottom += 1; in HandleKeydown()
1257 if (mpDragItem->rect.left + MIN_SCREEN_BOX_SIZE >= mpDragItem->rect.right) in HandleKeydown()
1262 mpDragItem->rect.right--; in HandleKeydown()
1266 if (mpDragItem->rect.left < 1) in HandleKeydown()
1270 mpDragItem->rect.left -= 1; in HandleKeydown()
1271 mpDragItem->rect.right -= 1; in HandleKeydown()
1279 mpDragItem->rect.right++; in HandleKeydown()
1283 mpDragItem->rect.left += 1; in HandleKeydown()
1284 mpDragItem->rect.right += 1; in HandleKeydown()
1443 source_center.x = (source->rect.left + source->rect.right) / 2; in CalculateConnectionPos()
1444 source_center.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1445 target_center.x = (target->rect.left + target->rect.right) / 2; in CalculateConnectionPos()
1446 target_center.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1454 line_start.x = source->rect.left; in CalculateConnectionPos()
1455 line_start.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1456 line_end.x = target->rect.right; in CalculateConnectionPos()
1457 line_end.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1461 line_start.x = (source->rect.left + source->rect.right) / 2; in CalculateConnectionPos()
1462 line_start.y = source->rect.bottom; in CalculateConnectionPos()
1463 line_end.x = (target->rect.left + target->rect.right) / 2; in CalculateConnectionPos()
1464 line_end.y = target->rect.top; in CalculateConnectionPos()
1468 line_start.x = source->rect.right; in CalculateConnectionPos()
1469 line_start.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1470 line_end.x = target->rect.left; in CalculateConnectionPos()
1471 line_end.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1478 line_start.x = source->rect.left; in CalculateConnectionPos()
1479 line_start.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1480 line_end.x = target->rect.right; in CalculateConnectionPos()
1481 line_end.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1485 line_start.x = (source->rect.left + source->rect.right) / 2; in CalculateConnectionPos()
1486 line_start.y = source->rect.top; in CalculateConnectionPos()
1487 line_end.x = (target->rect.left + target->rect.right) / 2; in CalculateConnectionPos()
1488 line_end.y = target->rect.bottom; in CalculateConnectionPos()
1492 line_start.x = source->rect.right; in CalculateConnectionPos()
1493 line_start.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1494 line_end.x = target->rect.left; in CalculateConnectionPos()
1495 line_end.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1547 select_outer =GetScaledRect(mpDragItem->rect); in CheckResizeCursor()