[Lazarus] TCairoCanvas integration
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Mar 11 15:16:24 CET 2010
On Thu, 11 Mar 2010 15:08:57 +0100
petr.kristan at epos.cz wrote:
> On Thu, Mar 11, 2010 at 03:01:18PM +0100, Mattias Gaertner wrote:
[...]
> > > > > Where is recommeded place for cairocanvas.pas and gdkcairocanvas.pas in
> > > > > lcl? CairoCanvas can work on Windows, Linux and Mac OS X.
> > > >
> > > > lcl/interfaces/gtk2
> > > I think this is good place for gdkcairocanvas.pas. But cairocanvas.pas
> > > needs only libcairo. It do not needs gtk.
> >
> > Well, it should be added to the fpc sources, but till this is in a
> > release we have to add this unit to the lazarus sources too.
> Ok.
>
> I place it into lcl/ along poscriptcanvas.pas.
lcl/ only contains platform independent sources (they must use a
minimum of external libraries). Platform dependent things should be
placed in lcl/interfaces/...
I think that non gtk users won't use cairo, so better place it in
lcl/interfaces/gtk2.
Mattias
More information about the Lazarus
mailing list