KiCad PCB EDA Suite
Loading...
Searching...
No Matches
block_drag_dependents.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef BLOCK_DRAG_DEPENDENTS_H
21#define BLOCK_DRAG_DEPENDENTS_H
22
23#include <vector>
24
25#include <math/vector2d.h>
26
27class PCB_SHAPE;
28
33{
37
41};
42
54
63
87BlockDragFindDependents( const std::vector<PCB_SHAPE*>& aCandidates,
88 const std::vector<BLOCK_DRAG_ENDPOINT>& aMovedEndpoints, bool aOverrideLocks,
89 std::vector<BLOCK_DRAG_ENDPOINT>& aDependents );
90
91#endif // BLOCK_DRAG_DEPENDENTS_H
BLOCK_DRAG_DEPENDENT_RESULT BlockDragFindDependents(const std::vector< PCB_SHAPE * > &aCandidates, const std::vector< BLOCK_DRAG_ENDPOINT > &aMovedEndpoints, bool aOverrideLocks, std::vector< BLOCK_DRAG_ENDPOINT > &aDependents)
Find the joined endpoints that have to follow the ones the drag moves.
BLOCK_DRAG_DEPENDENT_RESULT
@ LOCKED
A shape that would have to follow is locked and Override Locks is off, so the drag has to stop.
BLOCK_DRAG_FOLLOW
How a shape follows the endpoint it is joined to.
@ STRETCH
Only this end moves, so the shape stretches.
#define OK
@ WHOLE
The item as a whole (a segment as a line, a circle).
One end of a graphic shape, used both for the ends that moved and for the ones found to follow them.
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:708