KiCad PCB EDA Suite
Loading...
Searching...
No Matches
layer_settings_utils.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 modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LAYER_SETTINGS_UTILS_H
21#define LAYER_SETTINGS_UTILS_H
22
23#include <optional>
24#include <layer_ids.h>
25
33{
34 TRACKS,
35 VIAS,
36 PADS,
37 ZONES,
38 SHAPES,
39 BITMAPS,
53 GRID
54};
55
60
62std::optional<VISIBILITY_LAYER> VisibilityLayerFromRenderLayer( GAL_LAYER_ID aLayerId );
63
64std::optional<GAL_LAYER_ID> RenderLayerFromVisbilityString( const std::string& aLayer );
65std::string VisibilityLayerToString( VISIBILITY_LAYER aLayerId );
66
67
68#endif //LAYER_SETTINGS_UTILS_H
Helper for storing and iterating over GAL_LAYER_IDs.
Definition: layer_ids.h:355
GAL_LAYER_ID
GAL layers are "virtual" layers, i.e.
Definition: layer_ids.h:191
std::optional< VISIBILITY_LAYER > VisibilityLayerFromRenderLayer(GAL_LAYER_ID aLayerId)
GAL_SET UserVisbilityLayers()
The set of GAL_LAYER_IDs that correspond to VISIBILITY_LAYERS.
VISIBILITY_LAYER
The set of things that can have visibility settings stored in a project file (for example in a view p...
std::string VisibilityLayerToString(VISIBILITY_LAYER aLayerId)
GAL_LAYER_ID RenderLayerFromVisibilityLayer(VISIBILITY_LAYER aLayer)
std::optional< GAL_LAYER_ID > RenderLayerFromVisbilityString(const std::string &aLayer)
Common grid settings, available to every frame.
Definition: grid_settings.h:34