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 88 of file MenuOnButton.h. References OglGui::OglWindow::GetBorderBackground(), OglGui::Window::GetState(), mNonActiveBg, OglGui::Button::MouseFunc(), OglGui::Window::mStateFeedbackColor, and OglGui::OglWindow::SetBorderBackground(). 00089 { 00090 if (!GetState()) return; 00091 00092 Button::MouseFunc( msg, but, state, x, y ); 00093 00094 if (msg == oglMouseEnter) 00095 { 00096 mNonActiveBg = GetBorderBackground(); 00097 SetBorderBackground(mStateFeedbackColor); 00098 } 00099 if (msg == oglMouseLeave) 00100 SetBorderBackground(mNonActiveBg); 00101 }
Here is the call graph for this function:
|