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

virtual void OglGui::TitledWindow::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::SizableWindow.

Definition at line 111 of file TitledWindow.h.

References OglGui::Button::DoButtonSelectionEvent(), mMaximizeButton, OglGui::OglWindow::mOglWnd, OglGui::SizableWindow::MouseFunc(), and mTitleHeight.

00112     {
00113         SizableWindow::MouseFunc(msg, but, state, x, y);
00114 
00115         if (but == oglLeftButton && msg == oglMouseDblClick)
00116             if (y > mOglWnd->height - mTitleHeight - 8)
00117                 mMaximizeButton->DoButtonSelectionEvent();
00118     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:27:08 2011 for ImpalaSrc by  doxygen 1.5.1