Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

int Impala::Application::VideoExcel::GridWindow::GetRowForXY ( int  x,
int  y 
) [inline]

Definition at line 111 of file GridWindow.h.

References GetGridColumns(), Impala::Application::VideoExcel::TableDataSource::GetStartRow(), OglGui::OglWindow::H(), mGridHeaderHeight, mGridHeight, mGridWidth, and mSource.

Referenced by MouseFunc(), and UpdateZoomView().

00112     {
00113         if (x == 0 || y == 0) return -1;
00114 
00115         y = H() - mGridHeaderHeight - y;
00116 
00117         int px = x / (mGridWidth+4);
00118         int py = y / (mGridHeight+4);
00119         //ILOG_DEBUG("GetRowForXY: " << px << ", " << py << " = " <<
00120         //           py*GetGridColumns()+px);
00121         return mSource->GetStartRow()+ py * GetGridColumns() + px;
00122     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:38 2011 for ImpalaSrc by  doxygen 1.5.1