On Mon, Nov 10, 2003 at 12:45:14PM +0100, Alfredo Braunstein wrote: > Andre Poenitz wrote: > > >> Compiling. Note that we should anyway assert on "no rows", be cause "no > >> rows" means "no position information at all" so the checkInsetHit call > >> would be completely bogus. > > > > No, it means 'no _internal_ position information'. > > ... what about the inset size? Height in particular. > > > The xy placement of the inset and its dimension are valid after the > > first draw (the dimension even already after the first metrics). > > The first metrics then imply knowing the rowbreaking (otherwise how would it > know its height?) > > > This is sufficient for 'inset hit'. > > ... > > > But I just noticed we need to a bit more careful: If an inset is not > > visible anymore (because the user scrolled down) it keeps its xy chace > > with bogus values... > > Ugh...
We need the notion of 'visible paragraphs of main text'. BufferView::updateInset() would benefit from it as well... Should not be hard: A pair of ParagraphList::iterators build by summing up a few y values around bv->text->cursorPar()... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
