113 virtual const char *
GetName()
const;
Handle_t Pixmap_t
Pixmap handle.
ULong_t Pixel_t
Pixel value.
Handle_t Window_t
Window handle.
#define ClassDef(name, id)
const TGWindow * GetRoot() const
Returns current root (i.e.
void SetRoot(TGWindow *root=nullptr)
Sets the current root (i.e.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
This class is the baseclass for all ROOT GUI widgets.
TGClient * fClient
Connection to display server.
TGObject & operator=(const TGObject &tgo)
Handle_t fId
X11/Win32 Window identifier.
Handle events for windows that are not part of the native ROOT GUI.
virtual ~TGUnknownWindowHandler()
virtual Bool_t HandleEvent(Event_t *)=0
ROOT GUI Window base class.
virtual void SetWindowName(const char *name=0)
Set window name.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual void Move(Int_t x, Int_t y)
Move the window.
virtual Bool_t HandleEvent(Event_t *)
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
TGWindow(const TGWindow &tgw)
virtual ~TGWindow()
Window destructor. Unregisters the window.
virtual void Print(Option_t *option="") const
Print window id.
virtual void MapRaised()
map raised
static Int_t fgCounter
counter of created windows in SavePrimitive
virtual Bool_t HandleIdleEvent(TGIdleHandler *)
TGWindow & operator=(const TGWindow &tgw)
virtual UInt_t GetEditDisabled() const
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
set background pixmap
virtual void RequestFocus()
request focus
virtual void SetEditDisabled(UInt_t on=kEditDisable)
virtual Bool_t HandleExpose(Event_t *event)
virtual void SetName(const char *name)
const TGWindow * fParent
Parent window.
virtual void DestroySubwindows()
destroy sub windows
virtual void SetMapSubwindows(Bool_t)
virtual void SetEditable(Bool_t on=kTRUE)
virtual Int_t MustCleanup() const
@ kEditDisableResize
window size cannot be edited
@ kEditDisableHeight
window height cannot be edited
@ kEditEnable
allow edit of this window
@ kEditDisableLayout
window layout cannot be edited
@ kEditDisableBtnEnable
window can handle mouse button events
@ kEditDisableWidth
window width cannot be edited
@ kEditDisableGrab
window grab cannot be edited
@ kEditDisable
disable edit of this window
@ kEditDisableEvents
window events cannot be edited
@ kEditDisableKeyEnable
window can handle keyboard events
virtual void IconifyWindow()
iconify window
virtual void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
Move and resize the window.
virtual void MapWindow()
map window
virtual void UnmapWindow()
unmap window
virtual Bool_t IsMapSubwindows() const
virtual void LowerWindow()
lower window
virtual void DestroyWindow()
destroy window
virtual Bool_t IsEditable() const
static Int_t GetCounter()
Return global window counter (total number of created windows).
const TGWindow * GetParent() const
virtual Bool_t IsMapped()
Returns kTRUE if window is mapped on screen, kFALSE otherwise.
virtual void Resize(UInt_t w, UInt_t h)
Resize the window.
virtual void SetBackgroundColor(Pixel_t color)
set background color
TString fName
name of the window used in SavePrimitive()
virtual void RaiseWindow()
raise window
virtual void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0)
Reparent window, make p the new parent and position the window at position (x,y) in new parent.
Bool_t fNeedRedraw
kTRUE if window needs to be redrawn
virtual void MapSubwindows()
map sub windows
UInt_t fEditDisabled
flags used for "guibuilding"
virtual Bool_t HandleTimer(TTimer *)
Execute action in response of a timer timing out.
Mother of all ROOT objects.
Handles synchronous and a-synchronous timer events.
Attributes that can be used when creating or changing a window.