TRootEmbeddedCanvas


class description - source file - inheritance tree

class TRootEmbeddedCanvas : public TGCanvas

    private:
Bool_t HandleContainerButton(Event_t* ev) Bool_t HandleContainerConfigure(Event_t* ev) Bool_t HandleContainerCrossing(Event_t* ev) Bool_t HandleContainerDoubleClick(Event_t* ev) Bool_t HandleContainerExpose(Event_t* ev) Bool_t HandleContainerKey(Event_t* ev) Bool_t HandleContainerMotion(Event_t* ev) public:
TRootEmbeddedCanvas TRootEmbeddedCanvas(const char* name, const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame|kDoubleBorder, ULong_t back = fgDefaultFrameBackground) TRootEmbeddedCanvas TRootEmbeddedCanvas(TRootEmbeddedCanvas&) virtual void ~TRootEmbeddedCanvas() TClass* Class() TCanvas* GetCanvas() const virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
TRootEmbeddedContainer* fCanvasContainer container in canvas widget TCanvas* fCanvas pointer to TCanvas Bool_t fAutoFit when true canvas container keeps same size as canvas Int_t fButton currently pressed button

Class Description

                                                                      
 TRootEmbeddedCanvas                                                  
                                                                      
 This class creates a TGCanvas in which a TCanvas is created. Use     
 GetCanvas() to get a pointer to the TCanvas.                         
                                                                      


TRootEmbeddedCanvas(const char *name, const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGCanvas(p, w, h, options, back)
 Create an TCanvas embedded in a TGFrame. A pointer to the TCanvas can
 be obtained via the GetCanvas() member function.

~TRootEmbeddedCanvas()
 Delete embedded ROOT canvas.

Bool_t HandleContainerButton(Event_t *event)
 Handle mouse button events in the canvas container.

Bool_t HandleContainerDoubleClick(Event_t *event)
 Handle mouse button double click events in the canvas container.

Bool_t HandleContainerConfigure(Event_t *)
 Handle configure (i.e. resize) event.

Bool_t HandleContainerKey(Event_t *event)
 Handle keyboard events in the canvas container.

Bool_t HandleContainerMotion(Event_t *event)
 Handle mouse motion event in the canvas container.

Bool_t HandleContainerExpose(Event_t *event)
 Handle expose events.

Bool_t HandleContainerCrossing(Event_t *event)
 Handle enter/leave events. Only leave is activated at the moment.



Inline Functions


                   TCanvas* GetCanvas() const
                    TClass* Class()
                    TClass* IsA() const
                       void ShowMembers(TMemberInspector& insp, char* parent)
                       void Streamer(TBuffer& b)
        TRootEmbeddedCanvas TRootEmbeddedCanvas(TRootEmbeddedCanvas&)


Author: Fons Rademakers 15/07/98
Last update: 2.23/02 02/09/99 15.54.28 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - 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.