kicad-developers team mailing list archive
Mailing list archive
Re: proposal to move drawing routines to separate class
> PAINTER painter( wxDC(this /* window */ ) );
painter.SetHighlite( false );
painter.WorkAtLowPay( yes );
// The investment you are protecting with this strategy is here,
// concise, graphical library neutral code in the next line,
// Which does not change from library to library.
> painter.Draw( item );
If you cannot achieve what the comment claims, then this is a waste of time.