Definition at line 340 of file GridWindow.h. References GetRowForXY(), OglGui::OglWindow::H(), mZoomView, mZoomViewFollowMouse, mZoomViewSize, mZoomViewTargetWindow, and SetZoomView(). Referenced by MouseFunc(). 00341 { 00342 // Richard: 00343 // what I want to do here is to translate/scale the coordinates from this WindowTable view 00344 // to the window I designated as an overlay window in mainVideoExcel, there ought to be a nice 00345 // OGL function which handles this coordinate translation somewhere. 00346 00347 // translation is now set manually for this layout: 00348 int transX = 0, transY = 140; 00349 00350 int zx=x + transX; 00351 int zy=y + transY; 00352 if (zy + mZoomViewSize > mZoomViewTargetWindow->H()) 00353 zy = mZoomViewTargetWindow->H() - mZoomViewSize; 00354 00355 if (row == -1) 00356 row = GetRowForXY(x, y); 00357 if (mZoomViewFollowMouse) 00358 viewSys.SetDimensions(mZoomView, zx, zy, mZoomViewSize, mZoomViewSize); 00359 if (mZoomView->UserData1 != (void *) row) 00360 { 00361 SetZoomView(row); 00362 } 00363 }
Here is the call graph for this function:
|