KiCad PCB EDA Suite
Loading...
Searching...
No Matches
api_enums.cpp File Reference
#include <api/api_enums.h>
#include <import_export.h>
#include <api/common/types/enums.pb.h>
#include <api/board/board_types.pb.h>
#include <api/schematic/schematic_types.pb.h>
#include <core/typeinfo.h>
#include <font/text_attributes.h>
#include <layer_ids.h>
#include <stroke_params.h>

Go to the source code of this file.

Functions

template<>
KICAD_T FromProtoEnum (types::KiCadObjectType aValue)
 
template<>
types::KiCadObjectType ToProtoEnum (KICAD_T aValue)
 
template<>
PCB_LAYER_ID FromProtoEnum (board::types::BoardLayer aValue)
 
template<>
board::types::BoardLayer ToProtoEnum (PCB_LAYER_ID aValue)
 
template<>
SCH_LAYER_ID FromProtoEnum (schematic::types::SchematicLayer aValue)
 
template<>
schematic::types::SchematicLayer ToProtoEnum (SCH_LAYER_ID aValue)
 
template<>
GR_TEXT_H_ALIGN_T FromProtoEnum (types::HorizontalAlignment aValue)
 
template<>
types::HorizontalAlignment ToProtoEnum (GR_TEXT_H_ALIGN_T aValue)
 
template<>
GR_TEXT_V_ALIGN_T FromProtoEnum (types::VerticalAlignment aValue)
 
template<>
types::VerticalAlignment ToProtoEnum (GR_TEXT_V_ALIGN_T aValue)
 
template<>
LINE_STYLE FromProtoEnum (types::StrokeLineStyle aValue)
 
template<>
types::StrokeLineStyle ToProtoEnum (LINE_STYLE aValue)
 

Function Documentation

◆ FromProtoEnum() [1/6]

◆ FromProtoEnum() [2/6]

template<>
SCH_LAYER_ID FromProtoEnum ( schematic::types::SchematicLayer aValue)

Definition at line 375 of file api_enums.cpp.

References SCH_LAYER_ID_START.

◆ FromProtoEnum() [3/6]

template<>
GR_TEXT_H_ALIGN_T FromProtoEnum ( types::HorizontalAlignment aValue)

◆ FromProtoEnum() [4/6]

template<>
KICAD_T FromProtoEnum ( types::KiCadObjectType aValue)

Definition at line 35 of file api_enums.cpp.

References LIB_SYMBOL_T, PCB_ARC_T, PCB_DIMENSION_T, PCB_FIELD_T, PCB_FOOTPRINT_T, PCB_GENERATOR_T, PCB_GROUP_T, PCB_MARKER_T, PCB_PAD_T, PCB_REFERENCE_IMAGE_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TABLECELL_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_TRACE_T, PCB_VIA_T, PCB_ZONE_T, SCH_BITMAP_T, SCH_BUS_BUS_ENTRY_T, SCH_BUS_WIRE_ENTRY_T, SCH_DIRECTIVE_LABEL_T, SCH_FIELD_T, SCH_GLOBAL_LABEL_T, SCH_GROUP_T, SCH_HIER_LABEL_T, SCH_JUNCTION_T, SCH_LABEL_T, SCH_LINE_T, SCH_MARKER_T, SCH_NO_CONNECT_T, SCH_PIN_T, SCH_SHAPE_T, SCH_SHEET_PIN_T, SCH_SHEET_T, SCH_SYMBOL_T, SCH_TABLE_T, SCH_TABLECELL_T, SCH_TEXT_T, SCH_TEXTBOX_T, TYPE_NOT_INIT, WSG_BITMAP_T, WSG_LINE_T, WSG_PAGE_T, WSG_POLY_T, WSG_RECT_T, and WSG_TEXT_T.

Referenced by EDA_TEXT::Deserialize(), FOOTPRINT::Deserialize(), PAD::Deserialize(), PADSTACK::Deserialize(), PCB_ARC::Deserialize(), PCB_DIM_LEADER::Deserialize(), PCB_DIMENSION_BASE::Deserialize(), PCB_SHAPE::Deserialize(), PCB_TEXT::Deserialize(), PCB_TEXTBOX::Deserialize(), PCB_TRACK::Deserialize(), PCB_VIA::Deserialize(), SCH_LINE::Deserialize(), ZONE::Deserialize(), API_HANDLER_PCB::handleCheckPadstackPresenceOnLayers(), API_HANDLER_PCB::handleGetItems(), API_HANDLER_PCB::handleGetPadShapeAsPolygon(), API_HANDLER_PCB::handleGetSelection(), API_HANDLER_PCB::handleGetStackup(), API_HANDLER_PCB::handleSetActiveLayer(), API_HANDLER_PCB::handleSetBoardEditorAppearanceSettings(), API_HANDLER_PCB::handleSetVisibleLayers(), testEnums(), PADSTACK::unpackCopperLayer(), and kiapi::board::UnpackLayerSet().

◆ FromProtoEnum() [5/6]

template<>
LINE_STYLE FromProtoEnum ( types::StrokeLineStyle aValue)

Definition at line 469 of file api_enums.cpp.

References DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, and SOLID.

◆ FromProtoEnum() [6/6]

template<>
GR_TEXT_V_ALIGN_T FromProtoEnum ( types::VerticalAlignment aValue)

◆ ToProtoEnum() [1/6]

template<>
types::HorizontalAlignment ToProtoEnum ( GR_TEXT_H_ALIGN_T aValue)

◆ ToProtoEnum() [2/6]

template<>
types::VerticalAlignment ToProtoEnum ( GR_TEXT_V_ALIGN_T aValue)

◆ ToProtoEnum() [3/6]

◆ ToProtoEnum() [4/6]

template<>
types::StrokeLineStyle ToProtoEnum ( LINE_STYLE aValue)

Definition at line 488 of file api_enums.cpp.

References DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, and SOLID.

◆ ToProtoEnum() [5/6]

◆ ToProtoEnum() [6/6]

template<>
schematic::types::SchematicLayer ToProtoEnum ( SCH_LAYER_ID aValue)

Definition at line 388 of file api_enums.cpp.