58 "gClient and gApplication are nullptr!\n"
59 "Please add a TApplication instance in the main() function of your application\n");
69 if (
fClient->IsEditable()) type = wtype & ~1;
75 std::max(
h, (
UInt_t) 1), border,
76 depth, clss, visual, attr, type);
120 fClient->UnregisterWindow(
this);
140 wname +=
"::" +
fName;
314 while (parent && (parent !=
fClient->GetDefaultRoot())) {
315 std::cout <<
"\t" << parent->
ClassName() <<
":\t" << parent->
GetId() << std::endl;
338 if (
fName.BeginsWith(
"frame")) {
346 w->fName.Remove(0,5);
347 w->fName = cname + w->fName;
350 if (w->fName.Contains(
" "))
351 w->fName.ReplaceAll(
" ",
"");
352 if (w->fName.Contains(
":"))
353 w->fName.ReplaceAll(
":",
"");
Handle_t Pixmap_t
Pixmap handle.
ULong_t Pixel_t
Pixel value.
Handle_t Window_t
Window handle.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
externTApplication * gApplication
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual void Move(Int_t x, Int_t y)
Move the window.
virtual void MapRaised()
map raised
static Int_t fgCounter
counter of created windows in SavePrimitive
void Print(Option_t *option="") const override
Print window id.
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 void LowerWindow()
lower window
virtual void DestroyWindow()
destroy window
virtual void SetWindowName(const char *name=nullptr)
Set window name.
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
~TGWindow() override
Window destructor. Unregisters the window.
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
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
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Attributes that can be used when creating or changing a window.
Window attributes that can be inquired.
Int_t fMapState
kIsUnmapped, kIsUnviewable, kIsViewable