On Thu, Nov 20, 2003 at 01:37:04PM +0100, Braunstein Alfredo wrote:
> Andre Poenitz wrote:
>
> > On Wed, Nov 19, 2003 at 12:11:13AM +0100, Alfredo Braunstein wrote:
> >> This patch introduces document absolute coordinates in LyXText, and use
> >> them to solve the target_x problem (almost all operation are still done
> >> as before, but now we can possibly simplify/correct code using the
> >> absolute coordinates, in small steps).
> >
> > So we've basically decided to use absolute doc coordinates and not
> > absolute screen coordinates?
> > [Fine with me, but I just want it confirmed]
>
> Cofirmed (actually I thought that this was the consensus)
Yes probably. We need some small bits of glue in either direction so I
do think either decision is fine. Moreover the concept of 'document
global' is certainly the easiest one...
One question: what should now be the meaning of y in Inset::draw()?
Currently it is 'screen absolute' as far as I can tell. Do we change that?
Going to 'doc absolute' would mean adding lots of top_y() all over the
place when calling the low-level drawing routines.
Another option ('nicer' perhaps...) would be to do the top_y()
addition in all low-level routines (i.e. Painter::line() ::rect() etc)
Should we just do that?
Andre'