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 301 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]

◆ FromProtoEnum() [5/6]

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

Definition at line 395 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 414 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 314 of file api_enums.cpp.