KiCad PCB EDA Suite
autoplacer_tool.cpp File Reference

Go to the source code of this file.


static int refreshCallback (MODULE *aModule)


static PCB_BASE_EDIT_FRAMEfparent

Function Documentation

◆ refreshCallback()

static int refreshCallback ( MODULE aModule)

Definition at line 64 of file autoplacer_tool.cpp.

65 {
66  if( aModule )
67  fparent->GetCanvas()->GetView()->Update( aModule );
71  wxSafeYield(); // Give a slice of time to refresh the display
73  return 0;
74 }
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


Definition at line 63 of file autoplacer_tool.cpp.

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