// @(#)root/gui:$Id$
// Author: Fons Rademakers   2/8/2004

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGIdleHandler                                                        //
//                                                                      //
// Handle idle events, i.e. process GUI actions when there is nothing   //
// else anymore to do.                                                  //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include "TGIdleHandler.h"
#include "TGWindow.h"


ClassImp(TGIdleHandler)

//______________________________________________________________________________
TGIdleHandler::TGIdleHandler(TGWindow *w)
{
   // Create idle handler.

   if (w) {
      fWindow = w;
      if (fWindow->GetClient())
         fWindow->GetClient()->AddIdleHandler(this);
   } else
      Error("TGIdleHandler", "window cannot be 0");
}

//______________________________________________________________________________
TGIdleHandler::~TGIdleHandler()
{
   // Delete idle handler.

   if (fWindow->GetClient())
      fWindow->GetClient()->RemoveIdleHandler(this);
}

//______________________________________________________________________________
Bool_t TGIdleHandler::HandleEvent()
{
   // Handle the idle event. Returns true if the event has been handled,
   // false otherwise.

   return fWindow->HandleIdleEvent(this);
}
 TGIdleHandler.cxx:1
 TGIdleHandler.cxx:2
 TGIdleHandler.cxx:3
 TGIdleHandler.cxx:4
 TGIdleHandler.cxx:5
 TGIdleHandler.cxx:6
 TGIdleHandler.cxx:7
 TGIdleHandler.cxx:8
 TGIdleHandler.cxx:9
 TGIdleHandler.cxx:10
 TGIdleHandler.cxx:11
 TGIdleHandler.cxx:12
 TGIdleHandler.cxx:13
 TGIdleHandler.cxx:14
 TGIdleHandler.cxx:15
 TGIdleHandler.cxx:16
 TGIdleHandler.cxx:17
 TGIdleHandler.cxx:18
 TGIdleHandler.cxx:19
 TGIdleHandler.cxx:20
 TGIdleHandler.cxx:21
 TGIdleHandler.cxx:22
 TGIdleHandler.cxx:23
 TGIdleHandler.cxx:24
 TGIdleHandler.cxx:25
 TGIdleHandler.cxx:26
 TGIdleHandler.cxx:27
 TGIdleHandler.cxx:28
 TGIdleHandler.cxx:29
 TGIdleHandler.cxx:30
 TGIdleHandler.cxx:31
 TGIdleHandler.cxx:32
 TGIdleHandler.cxx:33
 TGIdleHandler.cxx:34
 TGIdleHandler.cxx:35
 TGIdleHandler.cxx:36
 TGIdleHandler.cxx:37
 TGIdleHandler.cxx:38
 TGIdleHandler.cxx:39
 TGIdleHandler.cxx:40
 TGIdleHandler.cxx:41
 TGIdleHandler.cxx:42
 TGIdleHandler.cxx:43
 TGIdleHandler.cxx:44
 TGIdleHandler.cxx:45
 TGIdleHandler.cxx:46
 TGIdleHandler.cxx:47
 TGIdleHandler.cxx:48
 TGIdleHandler.cxx:49
 TGIdleHandler.cxx:50
 TGIdleHandler.cxx:51
 TGIdleHandler.cxx:52
 TGIdleHandler.cxx:53
 TGIdleHandler.cxx:54
 TGIdleHandler.cxx:55
 TGIdleHandler.cxx:56