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.

Functions

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 
)
static

Definition at line 472 of file eda_text.cpp.

Referenced by EDA_TEXT::TransformTextShapeToSegmentList().

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