Definition at line 119 of file GridWindow.h. References GetGridColumns(), Impala::Application::MediaTable::TableDataView::GetStartRow(), Impala::Application::MediaTable::TableDataViewController::GetTableDataView(), OglGui::OglWindow::H(), mGridHeaderHeight, mGridHeight, and mGridWidth. Referenced by MouseFunc(), and UpdateZoomView(). 00120 { 00121 if (x == 0 || y == 0) return -1; 00122 00123 y = H() - mGridHeaderHeight - y; 00124 00125 int px = x / (mGridWidth+4); 00126 int py = y / (mGridHeight+4); 00127 //ILOG_DEBUG("GetRowForXY: " << px << ", " << py << " = " << 00128 // py*GetGridColumns()+px); 00129 return GetTableDataView()->GetStartRow()+ py * GetGridColumns() + px; 00130 }
Here is the call graph for this function:
|