KiCad PCB EDA Suite
sch_painter.cpp File Reference
#include <sch_item_struct.h>
#include <lib_draw_item.h>
#include <lib_rectangle.h>
#include <lib_pin.h>
#include <lib_circle.h>
#include <lib_polyline.h>
#include <lib_arc.h>
#include <lib_field.h>
#include <lib_text.h>
#include <sch_line.h>
#include <sch_component.h>
#include <sch_field.h>
#include <sch_junction.h>
#include <sch_text.h>
#include <sch_no_connect.h>
#include <sch_bus_entry.h>
#include <sch_bitmap.h>
#include <draw_graphic_text.h>
#include <geometry/geometry_utils.h>
#include <lib_edit_frame.h>
#include <plotter.h>
#include <template_fieldnames.h>
#include <class_libentry.h>
#include <class_library.h>
#include <sch_edit_frame.h>
#include <view/view.h>
#include <gal/graphics_abstraction_layer.h>
#include <colors_design_settings.h>
#include "sch_painter.h"

Go to the source code of this file.

Namespaces

 KIGFX
 Class CAIRO_GAL is the cairo implementation of the graphics abstraction layer.
 

Macros

#define HANDLE_ITEM(type_id, type_name)   case type_id: draw( (type_name *) item, aLayer ); break;
 
#define PIN_TEXT_MARGIN   4
 
#define SET_DC(i)
 

Functions

static COLOR4D KIGFX::selectedBrightening (const COLOR4D &aColor)
 
static LIB_PARTKIGFX::dummy ()
 Used when a LIB_PART is not found in library to draw a dummy shape. More...
 
static VECTOR2D KIGFX::mapCoords (const wxPoint &aCoord)
 
static int KIGFX::InternalPinDecoSize (const LIB_PIN &aPin)
 
static int KIGFX::ExternalPinDecoSize (const LIB_PIN &aPin)
 
static void KIGFX::drawPinDanglingSymbol (GAL *aGal, const VECTOR2I &aPos, const COLOR4D &aColor)
 
static void KIGFX::drawDanglingSymbol (GAL *aGal, const wxPoint &aPos)
 
static void KIGFX::orientComponent (LIB_PART *part, int orientation)
 

Macro Definition Documentation

#define HANDLE_ITEM (   type_id,
  type_name 
)    case type_id: draw( (type_name *) item, aLayer ); break;

Definition at line 136 of file sch_painter.cpp.

Referenced by KIGFX::SCH_PAINTER::Draw().

#define PIN_TEXT_MARGIN   4
#define SET_DC (   i)
Value:
m_gal->SetGlyphSize( VECTOR2D( size[i], size[i] ) ); \
m_gal->SetLineWidth( thickness[i] ); \
m_gal->SetStrokeColor( colour[i] );
VECTOR2< double > VECTOR2D
Definition: vector2d.h:586
size_t i
Definition: json11.cpp:597

Referenced by KIGFX::SCH_PAINTER::draw().