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

virtual void OglGui::ColorsNamed::WindowMouseEvent ( Window src,
int  msg,
int  but,
int  state,
int  x,
int  y,
void *  userData 
) [inline, virtual]

Reimplemented from OglGui::WindowListener.

Definition at line 49 of file ColorsNamed.h.

References OglGui::OglWindow::GetBorderBackground(), OglGui::StaticText::GetText(), mListener, mListenerData, and OglGui::ColorsNamedListener::OnColorName().

00051     {
00052         if (!mListener)
00053             return;
00054         if (msg == oglMouseDown || msg == oglMouseDblClick)
00055         {
00056             StaticText* txt   = (StaticText*) src;
00057             StaticText* txt2  = (StaticText*) userData;
00058             ULONG       col   = src->GetBorderBackground();
00059             std::string str   = txt2 ? txt2->GetText() : txt->GetText();
00060 
00061             mListener->OnColorName(this, str, col, msg, mListenerData);
00062         }
00063     }

Here is the call graph for this function:


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