100 delete fEcan->GetCanvas();
101 fEcan->AdoptCanvas(
new TCanvas(
"TSMPreviewCanvas", 10, 10,
102 fEcan->GetCanvasWindowId()));
107 gROOT->SetSelectedPad(pad);
115 c->UseCurrentStyle();
145 return fEcan->GetCanvas();
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
virtual TObject * DrawClonePad()
Draw a clone of this canvas into the current pad In an interactive session, select the destination/cu...
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
void MapWindow() override
map window
This class describes layout hints used by the layout classes.
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
void SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
TGTransientFrame(const TGTransientFrame &)=delete
ROOT GUI Window base class.
Mother of all ROOT objects.
This class creates a TGCanvas in which a TCanvas is created.
TStylePreview(const TGWindow *p, TStyle *style, TVirtualPad *currentPad)
Constructor.
TCanvas * GetMainCanvas()
Return pointer to the selected canvas.
void MapTheWindow()
Initialize the layout algorithm.
TVirtualPad * fPad
original pad previewed
void Update(TStyle *style, TVirtualPad *pad)
Update the preview with possibly another style and another object than previously.
~TStylePreview() override
Destructor.
TList * fTrashListLayout
to avoid memory leak
TRootEmbeddedCanvas * fEcan
canvas for preview
TStyle objects may be created to define special styles.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TCanvas * GetCanvas() const =0