library: libGui #include "TRootEmbeddedCanvas.h" |
TRootEmbeddedCanvas
class description - header file - source file - inheritance tree (.pdf)
protected:
TRootEmbeddedCanvas(const TRootEmbeddedCanvas&)
virtual Bool_t HandleContainerButton(Event_t* ev)
virtual Bool_t HandleContainerConfigure(Event_t* ev)
virtual Bool_t HandleContainerCrossing(Event_t* ev)
virtual Bool_t HandleContainerDoubleClick(Event_t* ev)
virtual Bool_t HandleContainerExpose(Event_t* ev)
virtual Bool_t HandleContainerKey(Event_t* ev)
virtual Bool_t HandleContainerMotion(Event_t* ev)
TRootEmbeddedCanvas& operator=(const TRootEmbeddedCanvas&)
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)
static TClass* Class()
Bool_t GetAutoFit() const
TCanvas* GetCanvas() const
Int_t GetCanvasWindowId() const
virtual TClass* IsA() const
virtual void SavePrimitive(ostream& out, Option_t* option = "")
void SetAutoFit(Bool_t fit = kTRUE)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Int_t fCWinId window id used by embedded TCanvas
TRootEmbeddedContainer* fCanvasContainer container in canvas widget
TCanvas* fCanvas pointer to TCanvas
Bool_t fAutoFit canvas container keeps same size as canvas
Int_t fButton currently pressed button
TRootEmbeddedCanvas(const char *name, const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back)
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 ]
Author: Fons Rademakers 15/07/98
Last update: root/gui:$Name: $:$Id: TRootEmbeddedCanvas.cxx,v 1.25 2006/07/03 16:10:45 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
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.