KiCad PCB EDA Suite
autoplacer_tool.cpp File Reference

Go to the source code of this file.

Functions

static int refreshCallback (MODULE *aModule)
 

Variables

static PCB_BASE_EDIT_FRAMEfparent
 

Function Documentation

◆ refreshCallback()

static int refreshCallback ( MODULE aModule)
static

Definition at line 67 of file autoplacer_tool.cpp.

68 {
69  if( aModule )
70  fparent->GetCanvas()->GetView()->Update( aModule );
71 
74  wxSafeYield(); // Give a slice of time to refresh the display
75 
76  return 0;
77 }
static PCB_BASE_EDIT_FRAME * fparent
virtual void Update(VIEW_ITEM *aItem, int aUpdateFlags) override
For dynamic VIEWs, informs the associated VIEW that the graphical representation of this item has cha...
Definition: pcb_view.cpp:91
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual KIGFX::PCB_VIEW * GetView() const override
Function GetView() Returns a pointer to the VIEW instance used in the panel.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
void MarkDirty()
Function MarkDirty() Forces redraw of view on the next rendering.
Definition: view.h:610

References fparent, PCB_BASE_FRAME::GetCanvas(), PCB_DRAW_PANEL_GAL::GetView(), KIGFX::VIEW::MarkDirty(), EDA_DRAW_PANEL_GAL::Refresh(), and KIGFX::PCB_VIEW::Update().

Referenced by AUTOPLACE_TOOL::autoplace().

Variable Documentation

◆ fparent

PCB_BASE_EDIT_FRAME* fparent
static

Definition at line 66 of file autoplacer_tool.cpp.

Referenced by AUTOPLACE_TOOL::autoplace(), and refreshCallback().