Andre Poenitz wrote:
> On Thu, Nov 20, 2003 at 01:44:43PM +0000, Angus Leeming wrote:
> But
>
> void InsetCommand::draw(PainterInfo & pi, int x, int y_abs) const
> {
> xo_ = x;
> yo_ = y;
> button_.draw(pi, x, y)
> }
>
> still looks nicer.
Oops! Yes. That was what I was really trying to say. Only translate
from the absolute coordinates when passing information outside of the
LyX core. Ie, to the Painter in this case.
> So if the translation could be done in the lower
> levels and the upper levels simply work on a 'everything is doc
> absolute and I am not even aware that LyX uses anything else' base.
>
> This is simpler than having any translation somewhere in the upper
> level as this always raises the question 'are these values already
> translated or not'.
--
Angus