kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #03917
wxGCDC (was Re: Re: R2217 bugs)
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"emmedics4" <marco.serantoni@...>
-
Date:
Fri, 15 Jan 2010 14:28:44 -0000
-
In-reply-to:
<alpine.SOC.1.99.1001151609180.29627@...>
-
User-agent:
eGroups-EW/0.82
--- In kicad-devel@xxxxxxxxxxxxxxx, Vesa Solonen <vsolonen@...> wrote:
> On Fri, 15 Jan 2010, emmedics4 wrote:
> > The application for example manages the ZOOM itself and probably could rely
> > on what is already exposed by the library or for example we could use
> > graphic calls with group primitives instead with single primitives.
> The grouping of the primitives and caching were very important when
> gEDA gschem was ported to Cairo (geda-dev). I'd very much like to see how
> this can be done on wx. Some googling seem to get just to the code that
> uses Cairo natively from wx... Especially wxPython examples would help me
> a lot.
Using wxGraphicsContext or wxGCDC (that is the GraphicsContext DC) as stated in the discussion topic.
You could group primitives to do Paths (wxGraphicsPath) and draw them.
http://docs.wxwidgets.org/stable/wx_wxgraphicscontext.html
--
Marco
References