#include "TVirtualDragManager.h"
#include "TROOT.h"
#include "TPluginManager.h"
ClassImp(TVirtualDragManager)
TVirtualDragManager *gDragManager = 0;
TVirtualDragManager::TVirtualDragManager()
{
Init();
}
TVirtualDragManager *TVirtualDragManager::Instance()
{
if (gDragManager) return gDragManager;
static Bool_t loaded = kFALSE;
static TPluginHandler *h = 0;
if (!loaded) {
h = gROOT->GetPluginManager()->FindHandler("TVirtualDragManager");
if (h) {
if (h->LoadPlugin() == -1) return 0;
loaded = kTRUE;
}
}
if (loaded) gDragManager = (TVirtualDragManager*)h->ExecPlugin(0);
return gDragManager;
}
void TVirtualDragManager::Init()
{
fDragging = kFALSE;
fMoveWaiting = kFALSE;
fDropping = kFALSE;
fPasting = kFALSE;
fTarget = 0;
fSource = 0;
fFrameUnder = 0;
fPasteFrame = 0;
fDragType = kDragNone;
}
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.