KiCad PCB EDA Suite
eda_text.cpp File Reference

Implementation of base KiCad text object. More...

#include <algorithm>
#include <stddef.h>
#include <type_traits>
#include <vector>
#include <base_struct.h>
#include <base_units.h>
#include <basic_gal.h>
#include <common.h>
#include <convert_to_biu.h>
#include <core/typeinfo.h>
#include <eda_rect.h>
#include <eda_text.h>
#include <gal/color4d.h>
#include <gal/stroke_font.h>
#include <gr_text.h>
#include <kicad_string.h>
#include <math/util.h>
#include <math/vector2d.h>
#include <trigo.h>
#include <wx/debug.h>
#include <wx/wx.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

◆ addTextSegmToBuffer()

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

Definition at line 570 of file eda_text.cpp.

571 {
572  std::vector<wxPoint>* cornerBuffer = static_cast<std::vector<wxPoint>*>( aData );
573  cornerBuffer->push_back( wxPoint( x0, y0 ) );
574  cornerBuffer->push_back( wxPoint( xf, yf ) );
575 }

Referenced by EDA_TEXT::TransformTextShapeToSegmentList().