13 #ifndef ROOT_TRootEmbeddedCanvas 14 #define ROOT_TRootEmbeddedCanvas 29 class TRootEmbeddedContainer;
virtual Bool_t HandleContainerKey(Event_t *ev)
Handle keyboard events in the canvas container.
Bool_t GetAutoFit() const
virtual Bool_t HandleContainerCrossing(Event_t *ev)
Handle enter/leave events. Only leave is activated at the moment.
TRootEmbeddedCanvas & operator=(const TRootEmbeddedCanvas &)
void SetAutoFit(Bool_t fit=kTRUE)
virtual Bool_t HandleDNDLeave()
Handle drag leave events.
virtual Bool_t HandleContainerDoubleClick(Event_t *ev)
Handle mouse button double click events in the canvas container.
virtual Bool_t HandleContainerConfigure(Event_t *ev)
Handle configure (i.e. resize) event.
void AdoptCanvas(TCanvas *c)
Canvas c is adopted from this embedded canvas.
virtual Atom_t HandleDNDEnter(Atom_t *typelist)
Handle drag enter events.
#define ClassDef(name, id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an embedded canvas as a C++ statement(s) on output stream out.
virtual Bool_t HandleContainerExpose(Event_t *ev)
Handle expose events.
friend class TRootEmbeddedContainer
virtual Bool_t HandleContainerButton(Event_t *ev)
Handle mouse button events in the canvas container.
virtual ~TRootEmbeddedCanvas()
Delete embedded ROOT canvas.
virtual Bool_t HandleDNDDrop(TDNDData *data)
Handle drop events.
virtual Atom_t HandleDNDPosition(Int_t, Int_t, Atom_t action, Int_t, Int_t)
Handle dragging position events.
TRootEmbeddedContainer * fCanvasContainer
Int_t GetCanvasWindowId() const
TCanvas * GetCanvas() const
TRootEmbeddedCanvas(const TRootEmbeddedCanvas &)
virtual Bool_t HandleContainerMotion(Event_t *ev)
Handle mouse motion event in the canvas container.