104 gROOT->SetSelectedPad(c);
107 gROOT->SetSelectedPad(pad);
TStylePreview(const TGWindow *p, TStyle *style, TVirtualPad *currentPad)
Constructor.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
R__EXTERN TStyle * gStyle
void MapTheWindow()
Initialize the layout algorithm.
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
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.
UInt_t GetWw() const
Get Ww.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual void SetEditable(Bool_t mode=kTRUE)
Set pad editable yes/no If a pad is not editable:
TRootEmbeddedCanvas * fEcan
TCanvas * GetMainCanvas()
Return pointer to the selected canvas.
TStyle objects may be created to define special styles.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
UInt_t GetWh() const
Get Wh.
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
Int_t GetCanvasWindowId() const
Int_t GetWindowTopX()
Returns current top x position of window on screen.
virtual ~TStylePreview()
Destructor.
if object does not want context menu
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
TCanvas * GetCanvas() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
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.
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 Add(TObject *obj)
virtual void Update()
Update canvas pad buffers.
void Modified(Bool_t flag=1)
virtual TCanvas * GetCanvas() const =0