60 "gClient and gApplication are nullptr!\n"
61 "Please add a TApplication instance in the main() function of your application\n");
78 depth, clss, visual, attr,
type);
142 wname +=
"::" +
fName;
317 std::cout <<
"\t" << parent->
ClassName() <<
":\t" << parent->
GetId() << std::endl;
Handle_t Pixmap_t
Pixmap handle.
ULong_t Pixel_t
Pixel value.
Handle_t Window_t
Window handle.
R__EXTERN TApplication * gApplication
R__EXTERN TSystem * gSystem
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
Bool_t IsEditable() const
void RegisterWindow(TGWindow *w)
Add a TGWindow to the clients list of windows.
void UnregisterWindow(TGWindow *w)
Remove a TGWindow from the list of windows.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
Handle events for windows that are not part of the native ROOT GUI.
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 const char * GetName() const
Return unique name, used in SavePrimitive methods.
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 void SetBackgroundPixmap(Pixmap_t pixmap)
set background pixmap
virtual void RequestFocus()
request focus
const TGWindow * fParent
Parent window.
virtual void DestroySubwindows()
destroy sub windows
@ kEditDisable
disable edit of this window
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
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 const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TString & Replace(Ssiz_t pos, Ssiz_t n, const char *s)
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TString & Remove(Ssiz_t pos)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual void Exit(int code, Bool_t mode=kTRUE)
Exit the application.
Short_t Max(Short_t a, Short_t b)
Attributes that can be used when creating or changing a window.
Window attributes that can be inquired.
Int_t fMapState
kIsUnmapped, kIsUnviewable, kIsViewable