| 
    KiCad PCB EDA Suite
    
   | 
 
#include "tools/position_relative_tool.h"#include <board_commit.h>#include <collectors.h>#include <dialogs/dialog_position_relative.h>#include <dialogs/dialog_offset_item.h>#include <footprint.h>#include <footprint_editor_settings.h>#include <gal/graphics_abstraction_layer.h>#include <kiplatform/ui.h>#include <pad.h>#include <pcb_group.h>#include <preview_items/two_point_assistant.h>#include <preview_items/two_point_geom_manager.h>#include <pcb_painter.h>#include <pgm_base.h>#include <preview_items/ruler_item.h>#include <render_settings.h>#include <settings/settings_manager.h>#include <status_popup.h>#include <tools/pcb_actions.h>#include <tools/pcb_grid_helper.h>#include <tools/pcb_selection_tool.h>#include <tools/pcb_picker_tool.h>#include <view/view_controls.h>Go to the source code of this file.
Functions | |
| static void | moveSelectionBy (const PCB_SELECTION &aSelection, const VECTOR2I &aMoveVec, BOARD_COMMIT &commit) | 
| Move each item in the selection by the given vector.   | |
      
  | 
  static | 
Move each item in the selection by the given vector.
If any pads are part of a footprint, the whole footprint is moved.
Definition at line 56 of file position_relative_tool.cpp.
References COMMIT::Modify(), BOARD_ITEM::Move(), and RECURSE.
Referenced by POSITION_RELATIVE_TOOL::InteractiveOffset(), and POSITION_RELATIVE_TOOL::RelativeItemSelectionMove().