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 <eda_item.h>
#include <base_units.h>
#include <basic_gal.h>
#include <convert_to_biu.h>
#include <eda_rect.h>
#include <eda_text.h>
#include <gal/color4d.h>
#include <gal/stroke_font.h>
#include <gr_text.h>
#include <string_utils.h>
#include <math/util.h>
#include <math/vector2d.h>
#include <richio.h>
#include <render_settings.h>
#include <trigo.h>
#include <i18n_utility.h>
#include <geometry/shape_segment.h>
#include <geometry/shape_compound.h>
#include <wx/debug.h>
#include <wx/string.h>
#include <wx/gdicmn.h>

Go to the source code of this file.

Classes

struct  EDA_TEXT_DESC
 

Functions

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

Variables

static struct EDA_TEXT_DESC _EDA_TEXT_DESC
 

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 585 of file eda_text.cpp.

586 {
587  std::vector<wxPoint>* cornerBuffer = static_cast<std::vector<wxPoint>*>( aData );
588  cornerBuffer->push_back( wxPoint( x0, y0 ) );
589  cornerBuffer->push_back( wxPoint( xf, yf ) );
590 }

Referenced by EDA_TEXT::TransformToSegmentList().

Variable Documentation

◆ _EDA_TEXT_DESC

struct EDA_TEXT_DESC _EDA_TEXT_DESC
static