KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_io_kicad_sexpr_common.cpp File Reference
#include <advanced_config.h>
#include <base_units.h>
#include <macros.h>
#include <schematic_lexer.h>
#include "sch_io_kicad_sexpr_common.h"
#include <string_utils.h>

Go to the source code of this file.

Functions

void formatFill (OUTPUTFORMATTER *aFormatter, int aNestLevel, FILL_T aFillMode, const COLOR4D &aFillColor)
 Fill token formatting helper.
 
const char * getPinElectricalTypeToken (ELECTRICAL_PINTYPE aType)
 
const char * getPinShapeToken (GRAPHIC_PINSHAPE aShape)
 
EDA_ANGLE getPinAngle (PIN_ORIENTATION aOrientation)
 
const char * getSheetPinShapeToken (LABEL_FLAG_SHAPE aShape)
 
EDA_ANGLE getSheetPinAngle (SHEET_SIDE aSide)
 
const char * getTextTypeToken (KICAD_T aType)
 
std::string formatIU (const int &aValue)
 
std::string formatIU (const VECTOR2I &aPt, bool aInvertY)
 
void formatArc (OUTPUTFORMATTER *aFormatter, int aNestLevel, EDA_SHAPE *aArc, bool aIsPrivate, const STROKE_PARAMS &aStroke, FILL_T aFillMode, const COLOR4D &aFillColor, bool aInvertY, const KIID &aUuid)
 
void formatCircle (OUTPUTFORMATTER *aFormatter, int aNestLevel, EDA_SHAPE *aCircle, bool aIsPrivate, const STROKE_PARAMS &aStroke, FILL_T aFillMode, const COLOR4D &aFillColor, bool aInvertY, const KIID &aUuid)
 
void formatRect (OUTPUTFORMATTER *aFormatter, int aNestLevel, EDA_SHAPE *aRect, bool aIsPrivate, const STROKE_PARAMS &aStroke, FILL_T aFillMode, const COLOR4D &aFillColor, bool aInvertY, const KIID &aUuid)
 
void formatBezier (OUTPUTFORMATTER *aFormatter, int aNestLevel, EDA_SHAPE *aBezier, bool aIsPrivate, const STROKE_PARAMS &aStroke, FILL_T aFillMode, const COLOR4D &aFillColor, bool aInvertY, const KIID &aUuid)
 
void formatPoly (OUTPUTFORMATTER *aFormatter, int aNestLevel, EDA_SHAPE *aPolyLine, bool aIsPrivate, const STROKE_PARAMS &aStroke, FILL_T aFillMode, const COLOR4D &aFillColor, bool aInvertY, const KIID &aUuid)
 

Variables

static const char * emptyString = ""
 

Function Documentation

◆ formatArc()

void formatArc ( OUTPUTFORMATTER aFormatter,
int  aNestLevel,
EDA_SHAPE aArc,
bool  aIsPrivate,
const STROKE_PARAMS aStroke,
FILL_T  aFillMode,
const COLOR4D aFillColor,
bool  aInvertY,
const KIID aUuid 
)

◆ formatBezier()

void formatBezier ( OUTPUTFORMATTER aFormatter,
int  aNestLevel,
EDA_SHAPE aBezier,
bool  aIsPrivate,
const STROKE_PARAMS aStroke,
FILL_T  aFillMode,
const COLOR4D aFillColor,
bool  aInvertY,
const KIID aUuid 
)

◆ formatCircle()

void formatCircle ( OUTPUTFORMATTER aFormatter,
int  aNestLevel,
EDA_SHAPE aCircle,
bool  aIsPrivate,
const STROKE_PARAMS aStroke,
FILL_T  aFillMode,
const COLOR4D aFillColor,
bool  aInvertY,
const KIID aUuid 
)

◆ formatFill()

◆ formatIU() [1/2]

std::string formatIU ( const int &  aValue)

◆ formatIU() [2/2]

std::string formatIU ( const VECTOR2I aPt,
bool  aInvertY 
)

◆ formatPoly()

void formatPoly ( OUTPUTFORMATTER aFormatter,
int  aNestLevel,
EDA_SHAPE aPolyLine,
bool  aIsPrivate,
const STROKE_PARAMS aStroke,
FILL_T  aFillMode,
const COLOR4D aFillColor,
bool  aInvertY,
const KIID aUuid 
)

◆ formatRect()

void formatRect ( OUTPUTFORMATTER aFormatter,
int  aNestLevel,
EDA_SHAPE aRect,
bool  aIsPrivate,
const STROKE_PARAMS aStroke,
FILL_T  aFillMode,
const COLOR4D aFillColor,
bool  aInvertY,
const KIID aUuid 
)

◆ getPinAngle()

EDA_ANGLE getPinAngle ( PIN_ORIENTATION  aOrientation)

◆ getPinElectricalTypeToken()

◆ getPinShapeToken()

const char * getPinShapeToken ( GRAPHIC_PINSHAPE  aShape)

◆ getSheetPinAngle()

EDA_ANGLE getSheetPinAngle ( SHEET_SIDE  aSide)

◆ getSheetPinShapeToken()

const char * getSheetPinShapeToken ( LABEL_FLAG_SHAPE  aShape)

◆ getTextTypeToken()

const char * getTextTypeToken ( KICAD_T  aType)

Variable Documentation

◆ emptyString