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

void OglGui::ZoomShiftRuler::SetDocXClamped ( int  x  )  [inline]

Definition at line 240 of file ZoomShiftRuler.h.

References OglGui::DocDimensions::mDocW, OglGui::DocDimensions::mDocX, and OglGui::OglWindow::W().

Referenced by MouseFunc().

00241     {
00242         int w = W();
00243         if (x > w/2)
00244             x = w/2;
00245         if (x+mDocW < w/2)
00246             x = -mDocW + w/2;
00247         mDocX = x;
00248     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:12:05 2010 for ImpalaSrc by  doxygen 1.5.1