#ifndef ROOT_TRootEmbeddedCanvas
#define ROOT_TRootEmbeddedCanvas
#ifndef ROOT_TGCanvas
#include "TGCanvas.h"
#endif
class TCanvas;
class TRootEmbeddedContainer;
class TRootEmbeddedCanvas : public TGCanvas {
friend class TRootEmbeddedContainer;
protected:
Int_t fCWinId;
TRootEmbeddedContainer *fCanvasContainer;
TCanvas *fCanvas;
Bool_t fAutoFit;
Int_t fButton;
TRootEmbeddedCanvas(const TRootEmbeddedCanvas&);
TRootEmbeddedCanvas& operator=(const TRootEmbeddedCanvas&);
virtual Bool_t HandleContainerButton(Event_t *ev);
virtual Bool_t HandleContainerDoubleClick(Event_t *ev);
virtual Bool_t HandleContainerConfigure(Event_t *ev);
virtual Bool_t HandleContainerKey(Event_t *ev);
virtual Bool_t HandleContainerMotion(Event_t *ev);
virtual Bool_t HandleContainerExpose(Event_t *ev);
virtual Bool_t HandleContainerCrossing(Event_t *ev);
public:
TRootEmbeddedCanvas(const char *name = 0, const TGWindow *p = 0, UInt_t w = 10,
UInt_t h = 10, UInt_t options = kSunkenFrame | kDoubleBorder,
Pixel_t back = GetDefaultFrameBackground());
virtual ~TRootEmbeddedCanvas();
void AdoptCanvas(TCanvas *c);
TCanvas *GetCanvas() const { return fCanvas; }
Int_t GetCanvasWindowId() const { return fCWinId; }
Bool_t GetAutoFit() const { return fAutoFit; }
void SetAutoFit(Bool_t fit = kTRUE) { fAutoFit = fit; }
virtual void SavePrimitive(ostream &out, Option_t *option = "");
ClassDef(TRootEmbeddedCanvas,0)
};
#endif
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.