This function is called by the event handling system everytime the user has moved or clicked the mouse. So if you want a window which reacts to the mouse in a specific way, you can inherit a class from Window. Another method to implement mouse behaviour is to use a window listener (in this case you have to inherit a class from WindowListener and attach it to this window, see WindowListener for more details) Reimplemented from OglGui::Window. Definition at line 50 of file Cluster.h. References OglGui::OglWindow::GetOGLWND(), mDetailImageI, OglGui::OglWindow::mOglWnd, OglGui::Window::MouseFunc(), and OglGui::SetImageInterface::SetImage(). 00051 { 00052 if (msg==oglMouseDown && mDetailImageI) 00053 { 00054 OGLVIEW* oglView = viewSys.FindView(mOglWnd, x, y); 00055 mDetailImageI->SetImage(oglView ? oglView->im : NULL); 00056 } 00057 Window::MouseFunc(msg, btn, state, x, y); 00058 RegionMouseFunc(GetOGLWND(), msg, btn, state, x, y); 00059 }
Here is the call graph for this function:
|