KiCad PCB EDA Suite
eda_text.cpp File Reference

Implementation of base KiCad text object. More...

#include <eda_text.h>
#include <gr_text.h>
#include <eda_rect.h>
#include <macros.h>
#include <trigo.h>
#include <basic_gal.h>
#include <base_units.h>
#include <convert_to_biu.h>

Go to the source code of this file.


static void addTextSegmToBuffer (int x0, int y0, int xf, int yf, void *aData)

Detailed Description

Implementation of base KiCad text object.

Definition in file eda_text.cpp.

Function Documentation

◆ addTextSegmToBuffer()

static void addTextSegmToBuffer ( int  x0,
int  y0,
int  xf,
int  yf,
void *  aData 

Definition at line 551 of file eda_text.cpp.

552 {
553  std::vector<wxPoint>* cornerBuffer = static_cast<std::vector<wxPoint>*>( aData );
554  cornerBuffer->push_back( wxPoint( x0, y0 ) );
555  cornerBuffer->push_back( wxPoint( xf, yf ) );
556 }

Referenced by EDA_TEXT::TransformTextShapeToSegmentList().