KiCad PCB EDA Suite
Loading...
Searching...
No Matches
api_utils.cpp File Reference
#include <magic_enum.hpp>
#include <api/api_utils.h>
#include <geometry/shape_poly_set.h>
#include <wx/log.h>

Go to the source code of this file.

Namespaces

namespace  kiapi
 
namespace  kiapi::common
 

Functions

KICOMMON_API std::optional< KICAD_Tkiapi::common::TypeNameFromAny (const google::protobuf::Any &aMessage)
 
KICOMMON_API LIB_ID kiapi::common::LibIdFromProto (const types::LibraryIdentifier &aId)
 
KICOMMON_API types::LibraryIdentifier kiapi::common::LibIdToProto (const LIB_ID &aId)
 
KICOMMON_API void kiapi::common::PackVector2 (types::Vector2 &aOutput, const VECTOR2I &aInput)
 
KICOMMON_API VECTOR2I kiapi::common::UnpackVector2 (const types::Vector2 &aInput)
 
KICOMMON_API void kiapi::common::PackVector3D (types::Vector3D &aOutput, const VECTOR3D &aInput)
 
KICOMMON_API VECTOR3D kiapi::common::UnpackVector3D (const types::Vector3D &aInput)
 
KICOMMON_API void kiapi::common::PackBox2 (types::Box2 &aOutput, const BOX2I &aInput)
 
KICOMMON_API BOX2I kiapi::common::UnpackBox2 (const types::Box2 &aInput)
 
KICOMMON_API void kiapi::common::PackPolyLine (types::PolyLine &aOutput, const SHAPE_LINE_CHAIN &aSlc)
 
KICOMMON_API SHAPE_LINE_CHAIN kiapi::common::UnpackPolyLine (const types::PolyLine &aInput)
 
KICOMMON_API void kiapi::common::PackPolySet (types::PolySet &aOutput, const SHAPE_POLY_SET &aInput)
 
KICOMMON_API SHAPE_POLY_SET kiapi::common::UnpackPolySet (const types::PolySet &aInput)
 

Variables

const wxChar *const traceApi = wxT( "KICAD_API" )
 Flag to enable debug output related to the IPC API and its plugin system.