25 ClassImp(TGIdleHandler);
30 TGIdleHandler::TGIdleHandler(TGWindow *w) : fWindow(0)
34 if (fWindow->GetClient())
35 fWindow->GetClient()->AddIdleHandler(
this);
37 Error(
"TGIdleHandler",
"window cannot be 0");
43 TGIdleHandler::~TGIdleHandler()
45 if (fWindow && fWindow->GetClient())
46 fWindow->GetClient()->RemoveIdleHandler(
this);
53 Bool_t TGIdleHandler::HandleEvent()
55 return (fWindow) ? fWindow->HandleIdleEvent(
this) : kFALSE;