Definition at line 250 of file Slider.h. References HandleChange(), mIncrement, mIsPressed, OglGui::Window::MouseFunc(), mVal, and SetValue(). 00251 { 00252 Window::MouseFunc(msg, but, state, x, y); 00253 00254 if ((state & (oglAlt | oglControl | oglShift)) != 0) return; 00255 00256 if (msg == oglMouseWheelUp) 00257 SetValue(mVal - mIncrement); 00258 if (msg == oglMouseWheelDown) 00259 SetValue(mVal + mIncrement); 00260 00261 if ((msg == oglMouseDown) && (but == oglLeftButton)){ 00262 mIsPressed = true; 00263 HandleChange(x, y); 00264 } 00265 00266 /* RvB: I want to remove this one 00267 if ((msg == oglMouseDown) && (but == oglRightButton) && mSliderListener) 00268 mSliderListener->SliderPopupEvent(this, mSliderListenerData); 00269 */ 00270 00271 if (msg == oglMouseMove) 00272 HandleChange(x, y); 00273 00274 if (msg == oglMouseUp) 00275 mIsPressed = false; 00276 }
Here is the call graph for this function:
|