KiCad PCB EDA Suite
Loading...
Searching...
No Matches
api_sch_enums.cpp File Reference
#include <api/api_enums.h>
#include <wx/wx.h>
#include <core/typeinfo.h>
#include <layer_ids.h>
#include <lib_symbol.h>
#include <pin_type.h>
#include <sch_label.h>
#include <sch_sheet_pin.h>
#include <symbol.h>
#include <api/schematic/schematic_types.pb.h>

Go to the source code of this file.

Functions

template<>
types::SchematicLabelShape ToProtoEnum (LABEL_FLAG_SHAPE aValue)
 
template<>
LABEL_FLAG_SHAPE FromProtoEnum (types::SchematicLabelShape aValue)
 
template<>
types::SchematicLabelSpinStyle ToProtoEnum (SPIN_STYLE::SPIN aValue)
 
template<>
SPIN_STYLE::SPIN FromProtoEnum (types::SchematicLabelSpinStyle aValue)
 
template<>
types::SheetSide ToProtoEnum (SHEET_SIDE aValue)
 
template<>
SHEET_SIDE FromProtoEnum (types::SheetSide aValue)
 
template<>
types::SchematicSymbolType ToProtoEnum (LIBRENTRYOPTIONS aValue)
 
template<>
LIBRENTRYOPTIONS FromProtoEnum (types::SchematicSymbolType aValue)
 
template<>
types::SchematicSymbolOrientation ToProtoEnum (SYMBOL_ORIENTATION_PROP aValue)
 
template<>
SYMBOL_ORIENTATION_PROP FromProtoEnum (types::SchematicSymbolOrientation aValue)
 
template<>
types::SchematicPinOrientation ToProtoEnum (PIN_ORIENTATION aValue)
 
template<>
PIN_ORIENTATION FromProtoEnum (types::SchematicPinOrientation aValue)
 
template<>
types::SchematicPinShape ToProtoEnum (GRAPHIC_PINSHAPE aValue)
 
template<>
GRAPHIC_PINSHAPE FromProtoEnum (types::SchematicPinShape aValue)
 

Function Documentation

◆ FromProtoEnum() [1/7]

template<>
LABEL_FLAG_SHAPE FromProtoEnum ( types::SchematicLabelShape aValue)

Definition at line 59 of file api_sch_enums.cpp.

References F_DIAMOND, F_DOT, F_RECTANGLE, F_ROUND, L_BIDI, L_INPUT, L_OUTPUT, L_TRISTATE, and L_UNSPECIFIED.

◆ FromProtoEnum() [2/7]

template<>
SPIN_STYLE::SPIN FromProtoEnum ( types::SchematicLabelSpinStyle aValue)

◆ FromProtoEnum() [3/7]

template<>
PIN_ORIENTATION FromProtoEnum ( types::SchematicPinOrientation aValue)

Definition at line 235 of file api_sch_enums.cpp.

References PIN_DOWN, PIN_LEFT, PIN_RIGHT, and PIN_UP.

◆ FromProtoEnum() [4/7]

template<>
GRAPHIC_PINSHAPE FromProtoEnum ( types::SchematicPinShape aValue)

◆ FromProtoEnum() [5/7]

template<>
SYMBOL_ORIENTATION_PROP FromProtoEnum ( types::SchematicSymbolOrientation aValue)

Definition at line 201 of file api_sch_enums.cpp.

References SYMBOL_ANGLE_0, SYMBOL_ANGLE_180, SYMBOL_ANGLE_270, and SYMBOL_ANGLE_90.

◆ FromProtoEnum() [6/7]

template<>
LIBRENTRYOPTIONS FromProtoEnum ( types::SchematicSymbolType aValue)

Definition at line 168 of file api_sch_enums.cpp.

References ENTRY_GLOBAL_POWER, ENTRY_LOCAL_POWER, and ENTRY_NORMAL.

◆ FromProtoEnum() [7/7]

template<>
SHEET_SIDE FromProtoEnum ( types::SheetSide aValue)

Definition at line 134 of file api_sch_enums.cpp.

References BOTTOM, LEFT, RIGHT, TOP, and UNDEFINED.

◆ ToProtoEnum() [1/7]

template<>
types::SchematicPinShape ToProtoEnum ( GRAPHIC_PINSHAPE aValue)

◆ ToProtoEnum() [2/7]

template<>
types::SchematicLabelShape ToProtoEnum ( LABEL_FLAG_SHAPE aValue)

Definition at line 37 of file api_sch_enums.cpp.

References F_DIAMOND, F_DOT, F_RECTANGLE, F_ROUND, L_BIDI, L_INPUT, L_OUTPUT, L_TRISTATE, and L_UNSPECIFIED.

◆ ToProtoEnum() [3/7]

template<>
types::SchematicSymbolType ToProtoEnum ( LIBRENTRYOPTIONS aValue)

Definition at line 152 of file api_sch_enums.cpp.

References ENTRY_GLOBAL_POWER, ENTRY_LOCAL_POWER, and ENTRY_NORMAL.

◆ ToProtoEnum() [4/7]

template<>
types::SchematicPinOrientation ToProtoEnum ( PIN_ORIENTATION aValue)

Definition at line 218 of file api_sch_enums.cpp.

References PIN_DOWN, PIN_LEFT, PIN_RIGHT, and PIN_UP.

◆ ToProtoEnum() [5/7]

template<>
types::SheetSide ToProtoEnum ( SHEET_SIDE aValue)

Definition at line 117 of file api_sch_enums.cpp.

References BOTTOM, LEFT, RIGHT, and TOP.

◆ ToProtoEnum() [6/7]

template<>
types::SchematicLabelSpinStyle ToProtoEnum ( SPIN_STYLE::SPIN aValue)

◆ ToProtoEnum() [7/7]

template<>
types::SchematicSymbolOrientation ToProtoEnum ( SYMBOL_ORIENTATION_PROP aValue)

Definition at line 184 of file api_sch_enums.cpp.

References SYMBOL_ANGLE_0, SYMBOL_ANGLE_180, SYMBOL_ANGLE_270, and SYMBOL_ANGLE_90.