101 delete fEcan->GetCanvas();
102 fEcan->AdoptCanvas(
new TCanvas(
"TSMPreviewCanvas", 10, 10,
103 fEcan->GetCanvasWindowId()));
108 gROOT->SetSelectedPad(pad);
116 c->UseCurrentStyle();
146 return fEcan->GetCanvas();
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void w
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetWMPosition
R__EXTERN TStyle * gStyle
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 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.
This class may be used to preview the result of applying a style to a canvas.
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