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 <list_operations.h>
#include <sch_line.h>
#include <sch_edit_frame.h>
#include <netlist_object.h>
#include <sch_view.h>
#include <dialogs/dialog_edit_line_style.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

static wxPenStyle getwxPenStyle ( PlotDashType  aType)
static

Definition at line 47 of file sch_line.cpp.

References PLOTDASHTYPE_DASH, PLOTDASHTYPE_DASHDOT, PLOTDASHTYPE_DOT, and PLOTDASHTYPE_SOLID.

Referenced by SCH_LINE::Draw().

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

Variable Documentation

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

Definition at line 107 of file sch_line.cpp.

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