Lines Matching refs:shift_y

761 …screen_flow_diagram_win::ShiftTop(CRect scaled_rect, CRect client, INT scaled_shift_y, INT shift_y)  in ShiftTop()  argument
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()
780 scaled_shift_y = shift_y * mScale / 100; in ShiftTop()
783 if (shift_y) in ShiftTop()
785 mpDragItem->rect.top += shift_y; in ShiftTop()
821 …een_flow_diagram_win::ShiftBottom(CRect scaled_rect, CRect client, INT scaled_shift_y, INT shift_y) in ShiftBottom() argument
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()
841 scaled_shift_y = shift_y * mScale / 100; in ShiftBottom()
844 if (shift_y) in ShiftBottom()
846 mpDragItem->rect.bottom += shift_y; in ShiftBottom()
873 int shift_y = point.y * 100 / mScale - mDragStart.y * 100 / mScale; in OnMouseMove() local
909 shift_y = top - mpDragItem->rect.top; in OnMouseMove()
912 if (shift_y) in OnMouseMove()
914 mpDragItem->rect.top += shift_y; in OnMouseMove()
915 mpDragItem->rect.bottom += shift_y; in OnMouseMove()
921 ShiftTop(scaled_rect, client, scaled_shift_y, shift_y); in OnMouseMove()
926 ShiftTop(scaled_rect, client, scaled_shift_y, shift_y); in OnMouseMove()
930 ShiftTop(scaled_rect, client, scaled_shift_y, shift_y); in OnMouseMove()
939 ShiftBottom(scaled_rect, client, scaled_shift_y, shift_y); in OnMouseMove()
944 ShiftBottom(scaled_rect, client, scaled_shift_y, shift_y); in OnMouseMove()
948 ShiftBottom(scaled_rect, client, scaled_shift_y, shift_y); in OnMouseMove()