![]() |
ROOT
6.06/09
Reference Guide
|
#include "TRootEmbeddedCanvas.h"#include "TCanvas.h"#include "TROOT.h"#include "Riostream.h"#include "TStyle.h"#include "TPluginManager.h"#include "TVirtualGL.h"#include "TGDNDManager.h"#include "TBufferFile.h"#include "TImage.h"#include "TClass.h"#include "TUrl.h"
Include dependency graph for TRootEmbeddedCanvas.cxx:Go to the source code of this file.
Functions | |
| ClassImp (TRootEmbeddedCanvas) TRootEmbeddedCanvas | |
| Create an TCanvas embedded in a TGFrame. More... | |
| ClassImp | ( | TRootEmbeddedCanvas | ) |
Create an TCanvas embedded in a TGFrame.
A pointer to the TCanvas can be obtained via the GetCanvas() member function. To embed a canvas derived from a TCanvas do the following: TRootEmbeddedCanvas *embedded = new TRootEmbeddedCanvas(0, p, w, h); [note name must be 0, not null string ""] Int_t wid = embedded->GetCanvasWindowId(); TMyCanvas *myc = new TMyCanvas("myname", 10, 10, wid); embedded->AdoptCanvas(myc); [ the MyCanvas is adopted by the embedded canvas and will be destroyed by it ]
Definition at line 91 of file TRootEmbeddedCanvas.cxx.