12#ifndef ROOT_TStylePreview 
   13#define ROOT_TStylePreview 
#define ClassDefOverride(name, id)
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
Defines transient windows that typically are used for dialogs windows.
 
ROOT GUI Window base class.
 
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.