KiCad PCB EDA Suite
sch_line.cpp File Reference

Class SCH_LINE implementation. More...

#include <fctsys.h>
#include <gr_basic.h>
#include <macros.h>
#include <sch_draw_panel.h>
#include <plotter.h>
#include <base_units.h>
#include <eeschema_config.h>
#include <general.h>
#include <sch_line.h>
#include <sch_edit_frame.h>
#include <netlist_object.h>
#include <sch_view.h>

Go to the source code of this file.

Functions

static wxPenStyle getwxPenStyle (PLOT_DASH_TYPE aType)
 

Variables

const std::map< PLOT_DASH_TYPE, const char * > lineStyleNames
 

Detailed Description

Class SCH_LINE implementation.

Definition in file sch_line.cpp.

Function Documentation

◆ getwxPenStyle()

static wxPenStyle getwxPenStyle ( PLOT_DASH_TYPE  aType)
static

Definition at line 44 of file sch_line.cpp.

45 {
46  switch( aType )
47  {
50  return wxPENSTYLE_SOLID;
52  return wxPENSTYLE_SHORT_DASH;
54  return wxPENSTYLE_DOT;
56  return wxPENSTYLE_DOT_DASH;
57  default:
58  wxFAIL_MSG( "Unhandled PlotDashType" );
59  return wxPENSTYLE_SOLID;
60  }
61 }

References DASH, DASHDOT, DEFAULT, DOT, and SOLID.

Referenced by SCH_LINE::Print().

Variable Documentation

◆ lineStyleNames

const std::map<PLOT_DASH_TYPE, const char*> lineStyleNames