60 if (fClient->IsEditable()) type = wtype & ~1;
63 if (fParent && fParent->IsMapSubwindows()) {
64 fId =
gVirtualX->CreateWindow(fParent->fId, x, y,
67 depth, clss, visual, attr, type);
68 fClient->RegisterWindow(
this);
76 fEditDisabled = (fId !=
gVirtualX->GetDefaultRootWindow()) && fParent ?
77 (fParent->fEditDisabled == kEditDisable) : 0;
80 if (fClient && fClient->GetDefaultRoot())
120 if (!name &&
gDebug > 0) {
123 wname +=
"::" +
fName;
202 std::cout <<
"\t" << parent->
ClassName() <<
":\t" << parent->
GetId() << std::endl;
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual ~TGWindow()
Window destructor. Unregisters the window.
const TGWindow * GetParent() const
TString & ReplaceAll(const TString &s1, const TString &s2)
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
void UnregisterWindow(TGWindow *w)
Remove a TGWindow from the list of windows.
TString & Replace(Ssiz_t pos, Ssiz_t n, const char *s)
const char * Data() const
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...
void RegisterWindow(TGWindow *w)
Add a TGWindow to the clients list of windows.
virtual void Print(Option_t *option="") const
Print window id.
virtual void Resize(UInt_t w, UInt_t h)
Resize the window.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual void Move(Int_t x, Int_t y)
Move the window.
TString & Remove(Ssiz_t pos)
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
virtual Bool_t IsMapped()
Returns kTRUE if window is mapped on screen, kFALSE otherwise.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
Move and resize the window.
Short_t Max(Short_t a, Short_t b)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
static Int_t GetCounter()
Return global window counter (total number of created windows).
virtual void DestroyWindow()
virtual void SetWindowName(const char *name=0)
Set window name.