|
ROOT
Reference Guide |
|
Go to the documentation of this file.
13 #ifndef ROOT_TRootEmbeddedCanvas
14 #define ROOT_TRootEmbeddedCanvas
21 class TRootEmbeddedContainer;
virtual Atom_t HandleDNDEnter(Atom_t *typelist)
Handle drag enter events.
virtual Atom_t HandleDNDPosition(Int_t, Int_t, Atom_t action, Int_t, Int_t)
Handle dragging position events.
ROOT GUI Window base class.
virtual Bool_t HandleContainerMotion(Event_t *ev)
Handle mouse motion event in the canvas container.
virtual Bool_t HandleContainerExpose(Event_t *ev)
Handle expose events.
ULong_t Pixel_t
Pixel value.
friend class TRootEmbeddedContainer
void AdoptCanvas(TCanvas *c)
Canvas c is adopted from this embedded canvas.
virtual ~TRootEmbeddedCanvas()
Delete embedded ROOT canvas.
TRootEmbeddedCanvas & operator=(const TRootEmbeddedCanvas &)=delete
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Int_t GetCanvasWindowId() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an embedded canvas as a C++ statement(s) on output stream out.
void SetAutoFit(Bool_t fit=kTRUE)
def fit(model, train_loader, val_loader, num_epochs, batch_size, optimizer, criterion, save_best, scheduler)
TRootEmbeddedCanvas(const TRootEmbeddedCanvas &)=delete
virtual Bool_t HandleContainerCrossing(Event_t *ev)
Handle enter/leave events. Only leave is activated at the moment.
Drag and drop data container.
virtual Bool_t HandleContainerKey(Event_t *ev)
Handle keyboard events in the canvas container.
Bool_t GetAutoFit() const
virtual Bool_t HandleContainerConfigure(Event_t *ev)
Handle configure (i.e. resize) event.
#define ClassDef(name, id)
virtual Bool_t HandleDNDDrop(TDNDData *data)
Handle drop events.
TCanvas * GetCanvas() const
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.
TRootEmbeddedContainer * fCanvasContainer
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
This class creates a TGCanvas in which a TCanvas is created.
virtual Bool_t HandleContainerButton(Event_t *ev)
Handle mouse button events in the canvas container.