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

int Impala::Application::VideoExcel::TableWindow::GetRowForY ( int  sy  )  [inline]

Definition at line 344 of file TableWindow.h.

References Impala::Application::VideoExcel::TableDataSource::GetEndRow(), Impala::Application::VideoExcel::TableColumn::GetHeaderHeight(), Impala::Application::VideoExcel::TableDataSource::GetRowHeight(), Impala::Application::VideoExcel::TableDataSource::GetStartRow(), OglGui::OglWindow::H(), and mSource.

Referenced by MouseFunc(), and UpdateZoomView().

00345     {
00346         int my = 0, h=H();
00347         for (int y = mSource->GetStartRow(); y < mSource->GetEndRow(); y++)
00348         {
00349             my += mSource->GetRowHeight(y);
00350             if ((h - TableColumn::GetHeaderHeight() - my) < sy)
00351                 return y;
00352         }
00353         return -1;
00354     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:54:47 2010 for ImpalaSrc by  doxygen 1.5.1