KiCad PCB EDA Suite
Loading...
Searching...
No Matches
snap_settings.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 3
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 SETTINGS_SNAP_SETTINGS_H
21
#define SETTINGS_SNAP_SETTINGS_H
22
23
struct
SNAP_INFERENCE_SETTINGS
24
{
25
bool
objectGeometry
=
true
;
26
bool
constructionExtensions
=
true
;
27
bool
tangentNormal
=
false
;
28
bool
alignmentDistribution
=
false
;
29
};
30
31
32
enum class
MAGNETIC_OPTIONS
33
{
34
NO_EFFECT
= 0,
35
CAPTURE_CURSOR_IN_TRACK_TOOL
,
36
CAPTURE_ALWAYS
37
};
38
39
40
struct
MAGNETIC_SETTINGS
41
{
42
MAGNETIC_OPTIONS
pads
=
MAGNETIC_OPTIONS::CAPTURE_CURSOR_IN_TRACK_TOOL
;
43
MAGNETIC_OPTIONS
tracks
=
MAGNETIC_OPTIONS::CAPTURE_CURSOR_IN_TRACK_TOOL
;
44
bool
graphics
=
false
;
45
bool
allLayers
=
false
;
46
};
47
48
#endif
MAGNETIC_OPTIONS
MAGNETIC_OPTIONS
Definition
snap_settings.h:33
MAGNETIC_OPTIONS::NO_EFFECT
@ NO_EFFECT
Definition
snap_settings.h:34
MAGNETIC_OPTIONS::CAPTURE_CURSOR_IN_TRACK_TOOL
@ CAPTURE_CURSOR_IN_TRACK_TOOL
Definition
snap_settings.h:35
MAGNETIC_OPTIONS::CAPTURE_ALWAYS
@ CAPTURE_ALWAYS
Definition
snap_settings.h:36
MAGNETIC_SETTINGS
Definition
snap_settings.h:41
MAGNETIC_SETTINGS::graphics
bool graphics
Definition
snap_settings.h:44
MAGNETIC_SETTINGS::tracks
MAGNETIC_OPTIONS tracks
Definition
snap_settings.h:43
MAGNETIC_SETTINGS::allLayers
bool allLayers
Definition
snap_settings.h:45
MAGNETIC_SETTINGS::pads
MAGNETIC_OPTIONS pads
Definition
snap_settings.h:42
SNAP_INFERENCE_SETTINGS
Definition
snap_settings.h:24
SNAP_INFERENCE_SETTINGS::tangentNormal
bool tangentNormal
Definition
snap_settings.h:27
SNAP_INFERENCE_SETTINGS::objectGeometry
bool objectGeometry
Definition
snap_settings.h:25
SNAP_INFERENCE_SETTINGS::constructionExtensions
bool constructionExtensions
Definition
snap_settings.h:26
SNAP_INFERENCE_SETTINGS::alignmentDistribution
bool alignmentDistribution
Definition
snap_settings.h:28
src
include
settings
snap_settings.h
Generated on Fri Jul 31 2026 00:07:51 for KiCad PCB EDA Suite by
1.13.2