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 (PlotDashType aType)
 

Variables

static const char * style_names []
 

Detailed Description

Class SCH_LINE implementation.

Definition in file sch_line.cpp.

Function Documentation

◆ getwxPenStyle()

static wxPenStyle getwxPenStyle ( PlotDashType  aType)
static

Definition at line 44 of file sch_line.cpp.

45 {
46  switch( aType )
47  {
48  case PLOTDASHTYPE_SOLID: return wxPENSTYLE_SOLID;
49  case PLOTDASHTYPE_DASH: return wxPENSTYLE_SHORT_DASH;
50  case PLOTDASHTYPE_DOT: return wxPENSTYLE_DOT;
51  case PLOTDASHTYPE_DASHDOT: return wxPENSTYLE_DOT_DASH;
52  }
53 
54  wxFAIL_MSG( "Unhandled PlotDashType" );
55  return wxPENSTYLE_SOLID;
56 }

References PLOTDASHTYPE_DASH, PLOTDASHTYPE_DASHDOT, PLOTDASHTYPE_DOT, and PLOTDASHTYPE_SOLID.

Referenced by SCH_LINE::Print().

Variable Documentation

◆ style_names

const char* style_names[]
static
Initial value:
=
{
"solid", "dashed", "dotted", "dash_dot", nullptr
}

Definition at line 104 of file sch_line.cpp.

Referenced by SCH_LINE::GetLineStyleInternalId(), and SCH_LINE::GetLineStyleName().