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

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

Reimplemented from OglGui::StaticText.

Definition at line 144 of file CheckBox.h.

References OglGui::Window::GetState(), OglGui::Window::MouseFunc(), mSelected, and PublishSelection().

00145     {
00146         if (!GetState()) return;
00147 
00148         Window::MouseFunc(msg, but, state, x, y);
00149 
00150         if (state & oglModifierKey)
00151             return;
00152 
00153         if ((msg == oglMouseDown) && (but == oglLeftButton)) 
00154         {
00155             mSelected = !mSelected;
00156             PublishSelection();
00157         }
00158     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:16 2011 for ImpalaSrc by  doxygen 1.5.1