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 <settings/color_settings.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 45 of file sch_line.cpp.

46 {
47  switch( aType )
48  {
51  return wxPENSTYLE_SOLID;
53  return wxPENSTYLE_SHORT_DASH;
55  return wxPENSTYLE_DOT;
57  return wxPENSTYLE_DOT_DASH;
58  default:
59  wxFAIL_MSG( "Unhandled PlotDashType" );
60  return wxPENSTYLE_SOLID;
61  }
62 }

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

Referenced by SCH_LINE::Print().

Variable Documentation

◆ lineStyleNames

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