KiCad PCB EDA Suite
|
#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) |
PCB_LAYER_ID FromProtoEnum | ( | board::types::BoardLayer | aValue | ) |
Definition at line 151 of file api_enums.cpp.
References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, In10_Cu, In11_Cu, In12_Cu, In13_Cu, In14_Cu, In15_Cu, In16_Cu, In17_Cu, In18_Cu, In19_Cu, In1_Cu, In20_Cu, In21_Cu, In22_Cu, In23_Cu, In24_Cu, In25_Cu, In26_Cu, In27_Cu, In28_Cu, In29_Cu, In2_Cu, In30_Cu, In3_Cu, In4_Cu, In5_Cu, In6_Cu, In7_Cu, In8_Cu, In9_Cu, Margin, Rescue, UNDEFINED_LAYER, UNSELECTED_LAYER, User_1, User_2, User_3, User_4, User_5, User_6, User_7, User_8, and User_9.
SCH_LAYER_ID FromProtoEnum | ( | schematic::types::SchematicLayer | aValue | ) |
Definition at line 301 of file api_enums.cpp.
References SCH_LAYER_ID_START.
GR_TEXT_H_ALIGN_T FromProtoEnum | ( | types::HorizontalAlignment | aValue | ) |
Definition at line 327 of file api_enums.cpp.
References GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_INDETERMINATE, GR_TEXT_H_ALIGN_LEFT, and GR_TEXT_H_ALIGN_RIGHT.
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_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.
LINE_STYLE FromProtoEnum | ( | types::StrokeLineStyle | aValue | ) |
Definition at line 395 of file api_enums.cpp.
References DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, and SOLID.
GR_TEXT_V_ALIGN_T FromProtoEnum | ( | types::VerticalAlignment | aValue | ) |
Definition at line 361 of file api_enums.cpp.
References GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_INDETERMINATE, and GR_TEXT_V_ALIGN_TOP.
types::HorizontalAlignment ToProtoEnum | ( | GR_TEXT_H_ALIGN_T | aValue | ) |
Definition at line 345 of file api_enums.cpp.
References GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_INDETERMINATE, GR_TEXT_H_ALIGN_LEFT, and GR_TEXT_H_ALIGN_RIGHT.
types::VerticalAlignment ToProtoEnum | ( | GR_TEXT_V_ALIGN_T | aValue | ) |
Definition at line 379 of file api_enums.cpp.
References GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_INDETERMINATE, and GR_TEXT_V_ALIGN_TOP.
types::KiCadObjectType ToProtoEnum | ( | KICAD_T | aValue | ) |
Definition at line 94 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_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, WSG_BITMAP_T, WSG_LINE_T, WSG_PAGE_T, WSG_POLY_T, WSG_RECT_T, and WSG_TEXT_T.
types::StrokeLineStyle ToProtoEnum | ( | LINE_STYLE | aValue | ) |
Definition at line 414 of file api_enums.cpp.
References DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, and SOLID.
board::types::BoardLayer ToProtoEnum | ( | PCB_LAYER_ID | aValue | ) |
Definition at line 227 of file api_enums.cpp.
References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, In10_Cu, In11_Cu, In12_Cu, In13_Cu, In14_Cu, In15_Cu, In16_Cu, In17_Cu, In18_Cu, In19_Cu, In1_Cu, In20_Cu, In21_Cu, In22_Cu, In23_Cu, In24_Cu, In25_Cu, In26_Cu, In27_Cu, In28_Cu, In29_Cu, In2_Cu, In30_Cu, In3_Cu, In4_Cu, In5_Cu, In6_Cu, In7_Cu, In8_Cu, In9_Cu, Margin, Rescue, UNDEFINED_LAYER, UNSELECTED_LAYER, User_1, User_2, User_3, User_4, User_5, User_6, User_7, User_8, and User_9.
schematic::types::SchematicLayer ToProtoEnum | ( | SCH_LAYER_ID | aValue | ) |
Definition at line 314 of file api_enums.cpp.