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

virtual void OglGui::SpinWheel::MouseFunc ( INT  msg,
INT  but,
INT  state,
INT  x,
INT  y 
) [inline, virtual]

Definition at line 124 of file SpinWheel.h.

References OglGui::Window::GetState(), mDownDir, mIncrement, mIsPressed, OglGui::OglWindow::mOglWnd, OglGui::Window::MouseFunc(), mVal, SetValue(), and OglGui::RepeatTimer::StartRepeatTime().

00125     {
00126         Window::MouseFunc(msg, but, state, x, y);
00127 
00128         if (!GetState()) return;
00129 
00130         if (msg == oglMouseWheelUp || msg == oglMouseWheelDown)
00131             SetValue(mVal + (msg==oglMouseWheelUp ? mIncrement : -mIncrement));
00132 
00133         mDownDir = (y < mOglWnd->height/2);
00134 
00135         if ((msg == oglMouseDown) && (but == oglLeftButton)){
00136             mIsPressed = true;
00137             StartRepeatTime();
00138             SetValue(mVal + (mDownDir ? -mIncrement : mIncrement));
00139             oglSys.SetAlwaysDraw(mOglWnd, true);
00140         }
00141         if (msg == oglMouseMove && (state & oglLeftButton))
00142             mIsPressed = (x>0 && x<mOglWnd->width && y>0 && y<mOglWnd->height);
00143 
00144         if (msg == oglMouseUp) {
00145             oglSys.SetAlwaysDraw(mOglWnd, false);
00146             mIsPressed = false;
00147         }
00148     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:55 2011 for ImpalaSrc by  doxygen 1.5.1