On Thu, Feb 05, 2004 at 12:43:23PM +0100, Alfredo Braunstein wrote: > I've played a bit with coordinates this morning, and tried to bring LyX > again to a working state (coord-wise). I think it can be a good starting > point to choose a right coordinate scheme. > > currently is: > > - LyXFunc::dispatch uses screen coords (ok) > > - BufferView::Pimpl::workAreaDispatch receives screen coords and translates > inmediately to absolute coords, before dispatching to insets::dispatch or > lyxtext::dispatch. (ok) > > - internal methods from LyXText use a mixture of absolute x,y coords, > LyXText-relative x,y coords, and relative-y but absolute-x. (not so good. > I'd try to declare private whatever doesn't takes absolute coords. I think > storing relative info is ok as long as it is private.)
I'd think we should settle here for a clear scheme, i.e. either absolute or screen-relative. > - inset::dispatch and lyxtext::dispatch take absolute coords (ok) > > - the cached x,y position in insets is screen-relative (bad) I can't really make up my mind with all this coordinates business. 'Everything absolute' would be nice, but we can't update the caches all the time... Andre\
