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

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

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 439 of file ViewSphere.h.

References OglGui::Window::MouseFunc().

00440         {
00441                 if( msg == oglMouseWheelUp || msg == oglMouseWheelDown )
00442                 {
00443                         mRotRingAngle += (msg == oglMouseWheelUp) ? 3 : -3;
00444                 }
00445                 else
00446                         Window::MouseFunc( msg, but, state, x, y );
00447         }

Here is the call graph for this function:


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