Reimplemented from OglGui::StaticText. Definition at line 109 of file WindowView2D.h. References OglGui::Window::GetState(), mActAsButton, mIsPressed, mListenerData, OglGui::OglWindow::mOglWnd, OglGui::Window::MouseFunc(), mRepeatMode, mWndView2DListener, OglGui::WindowView2DListener::SelectionEvent(), and OglGui::RepeatTimer::StartRepeatTime(). 00110 { 00111 Window::MouseFunc(msg, but, state, x, y); 00112 00113 if ((msg == oglMouseDown) && (but == oglLeftButton) && GetState()){ 00114 mIsPressed = true; 00115 if (mActAsButton && mRepeatMode) 00116 { 00117 StartRepeatTime(); 00118 oglSys.SetAlwaysDraw(mOglWnd, true); 00119 if (mWndView2DListener) 00120 mWndView2DListener->SelectionEvent(this, mListenerData); 00121 } 00122 } 00123 if (msg == oglMouseMove && (state & oglLeftButton)) 00124 mIsPressed = x<0 || x>mOglWnd->width || y<0 || y>mOglWnd->height; 00125 00126 /* RvB: I want to remove this one 00127 if ((msg==oglMouseDown) && (but==oglRightButton) && mWndView2DListener) 00128 mWndView2DListener->WndView2DPopupEvent(this, mListenerData); 00129 */ 00130 00131 if (msg == oglMouseUp){ 00132 if (mActAsButton && !mRepeatMode && mIsPressed && mWndView2DListener){ 00133 mIsPressed = false; 00134 mWndView2DListener->SelectionEvent(this, mListenerData); 00135 } 00136 mIsPressed = false; 00137 oglSys.SetAlwaysDraw(mOglWnd, false); 00138 oglSys.UpdateSceneFlag(mOglWnd, 1); 00139 } 00140 }
Here is the call graph for this function:
|