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

Go to the source code of this file.


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

Function Documentation

◆ DrawDanglingSymbol()

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

Definition at line 37 of file eeredraw.cpp.

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 }
virtual BASE_SCREEN * GetScreen()=0
Definition: general.h:43
virtual EDA_RECT * GetClipBox()
void GRRect(EDA_RECT *aClipBox, wxDC *aDC, int x1, int y1, int x2, int y2, COLOR4D aColor)
Definition: gr_basic.cpp:1003
Class BASE_SCREEN handles how to draw a screen (a board, a schematic ...)
Definition: base_screen.h:76
bool m_IsPrinting
Definition: base_screen.h:220

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

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