KiCad PCB EDA Suite
eda_text.cpp File Reference

Implementation of base KiCad text object. More...

#include <eda_text.h>
#include <draw_graphic_text.h>
#include <eda_rect.h>
#include <macros.h>
#include <trigo.h>
#include <class_drawpanel.h>
#include <basic_gal.h>
#include <unit_format.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

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

Definition at line 473 of file eda_text.cpp.

Referenced by EDA_TEXT::TransformTextShapeToSegmentList().

474 {
475  std::vector<wxPoint>* cornerBuffer = static_cast<std::vector<wxPoint>*>( aData );
476  cornerBuffer->push_back( wxPoint( x0, y0 ) );
477  cornerBuffer->push_back( wxPoint( xf, yf ) );
478 }