KiCad PCB EDA Suite
eeredraw.cpp File Reference
#include <fctsys.h>
#include <gr_basic.h>
#include <class_drawpanel.h>
#include <schframe.h>
#include <general.h>

Go to the source code of this file.


void DrawDanglingSymbol (EDA_DRAW_PANEL *panel, wxDC *DC, const wxPoint &pos, COLOR4D Color)

Function Documentation

void DrawDanglingSymbol ( EDA_DRAW_PANEL panel,
wxDC *  DC,
const wxPoint pos,
COLOR4D  Color 

Definition at line 37 of file eeredraw.cpp.

References DANGLING_SYMBOL_SIZE, EDA_DRAW_PANEL::GetClipBox(), EDA_DRAW_PANEL::GetScreen(), GRRect(), BASE_SCREEN::m_IsPrinting, wxPoint::x, and wxPoint::y.

Referenced by SCH_LINE::Draw(), SCH_TEXT::Draw(), SCH_GLOBALLABEL::Draw(), and SCH_HIERLABEL::Draw().

38 {
39  BASE_SCREEN* screen = panel->GetScreen();
41  if( !screen->m_IsPrinting ) /* Draw but do not print the Dangling Symbol */
42  {
43  GRRect( panel->GetClipBox(), DC,
46  0, Color );
47  }
48 }
Definition: general.h:42
void GRRect(EDA_RECT *aClipBox, wxDC *aDC, int x1, int y1, int x2, int y2, COLOR4D aColor)
Definition: gr_basic.cpp:1077
Class BASE_SCREEN handles how to draw a screen (a board, a schematic ...)
EDA_RECT * GetClipBox()
BASE_SCREEN * GetScreen()
Definition: draw_panel.cpp:188