Re: POW 19.12.99 questions


Subject: Re: POW 19.12.99 questions
From: Mike Nordell (tamlin@algonet.se)
Date: Wed May 17 2000 - 14:06:29 CDT


----- Original Message -----
From: "Mike Nordell" <tamlin@algonet.se>
To: <megabyte@salesexplosion.com>
Sent: Wednesday, May 17, 2000 8:05 PM
Subject: Re: POW 19.12.99 questions

> Mike and Alexey wrote:
>
> > > polyLine() is AFAIK just what its name implies?
> > >
> > > If on the other hand you're suggesting a polyLine which also
> > > _fills_ its
> > > interior, I'd go for another method name and a fill color
> > > argument to it
> > > (like polyLineFill(..., rgb color) ).
> >
> > Yes, I am.
> >
> > Ok. I can write the polyLineFill method for XP and Win32, but I
cannot
> > implement it in my POW 19.12.99 patch untill polyLineFill for Unix,
> BeOS,
> > etc is not written.
>
> Now we have to have some other platforms input I think.
>
> - In Win32 we have a FloodFill function. We also have
> BeginPath()/EndPath() that can "close" a polygon and fill it at the
end.
> - Looking at BeOS 4.5 there's a FillPolygon(const BPolygon *aPolygon,
> ...);
> Should we have a Polygon class?
> - What do the other platforms (i.e. X11 & Mac) have, and should we
> _depend_ on that functionality?
>
> I'd say we create a gfxArrow class that knows how to draw itself using
> the simple primitives of one filled triangle and one _connecting_ (or
by
> some small amount overlapping) rectangle. The _default implementation_
> might even be implemented by drawing lines. It might seem like both
> overkill to use a class for this, and primitive to do the default stuff
> like this, but since we have no idea of what gfx options the next
> platform have I think it's a good idea.
>
> Look at it like this: If you are on a platform that _do_ support filled
> polygons, subclass this arrow class and get it to be created from an
> "arrow factory". Your arrow-class might even implement it by painting
an
> internal bitmap and then caching it.
>
> Just my $0.02.
>
> /Mike - please reply to AbiWord-dev only
>
>



This archive was generated by hypermail 2b25 : Wed May 17 2000 - 13:17:03 CDT