KiCad PCB EDA Suite
autoplace_tool.cpp File Reference

Go to the source code of this file.

Functions

static int refreshCallback (FOOTPRINT *aFootprint)
 

Variables

static PCB_BASE_EDIT_FRAMEfparent
 

Function Documentation

◆ refreshCallback()

static int refreshCallback ( FOOTPRINT aFootprint)
static

Definition at line 49 of file autoplace_tool.cpp.

50 {
51  if( aFootprint )
52  fparent->GetCanvas()->GetView()->Update( aFootprint );
53 
56  wxSafeYield(); // Give a slice of time to refresh the display
57 
58  return 0;
59 }
static PCB_BASE_EDIT_FRAME * fparent
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const override
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
Definition: pcb_view.cpp:92
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
void MarkDirty()
Force redraw of view on the next rendering.
Definition: view.h:633

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 47 of file autoplace_tool.cpp.

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