45 SetWindowName(
"Style Manager's Preview");
50 fTrashListLayout =
new TList();
54 fTrashListLayout->Add(layoutXY);
58 AddFrame(fEcan, layoutXY);
61 Update(style, currentPad);
67 fEcan->GetCanvas()->SetEditable(
kFALSE);
104 gROOT->SetSelectedPad(c);
107 gROOT->SetSelectedPad(pad);
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
ClassImp(TStylePreview) TStylePreview
Constructor.
R__EXTERN TStyle * gStyle
void MapTheWindow()
Initialize the layout algorithm.
TCanvas * GetCanvas() const
void Update(TStyle *style, TVirtualPad *pad)
Update the preview with possibly another style and another object than previously.
void AdoptCanvas(TCanvas *c)
Canvas c is adopted from this embedded canvas.
Int_t GetWindowTopY()
Returns current top y position of window on screen.
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
UInt_t GetWw() const
Get Ww.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
TRootEmbeddedCanvas * fEcan
TCanvas * GetMainCanvas()
Return pointer to the selected canvas.
TStyle objects may be created to define special styles.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
Int_t GetWindowTopX()
Returns current top x position of window on screen.
virtual ~TStylePreview()
Destructor.
Int_t GetCanvasWindowId() const
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
Mother of all ROOT objects.
void UseCurrentStyle()
Force a copy of current style for all objects in canvas.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
virtual TObject * DrawClonePad()
Draw a clone of this canvas into the current pad In an interactive session, select the destination/cu...
virtual void Update()
Update canvas pad buffers.
void Modified(Bool_t flag=1)
UInt_t GetWh() const
Get Wh.
virtual TCanvas * GetCanvas() const =0