kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #07429
Re: proposal to move drawing routines to separate class
> {
> PAINTER painter( wxDC(this /* window */ ) );
painter.SetOffset( ...);
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.
Follow ups
References