class TGWindow: public TGObject


TGWindow

ROOT GUI Window base class.


Function Members (Methods)

public:
TGWindow(TGClient* c, Window_t id, const TGWindow* parent = 0)
TGWindow(const TGWindow* p = 0, Int_t x = 0, Int_t y = 0, UInt_t w = 0, UInt_t h = 0, UInt_t border = 0, Int_t depth = 0, UInt_t clss = 0, void* visual = 0, SetWindowAttributes_t* attr = 0, UInt_t wtype = 0)
virtual~TGWindow()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidDestroySubwindows()
virtual voidDestroyWindow()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TGClient*TGObject::GetClient() const
static Int_tGetCounter()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual UInt_tGetEditDisabled() const
virtual const char*TObject::GetIconName() const
Handle_tTGObject::GetId() const
virtual const TGWindow*GetMainFrame() const
virtual const char*GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const TGWindow*GetParent() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tHandleEvent(Event_t*)
virtual Bool_tHandleExpose(Event_t* event)
virtual Bool_tHandleIdleEvent(TGIdleHandler*)
virtual Bool_tHandleTimer(TTimer*)
virtual ULong_tTGObject::Hash() const
virtual voidIconifyWindow()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tIsEditable() const
virtual Bool_tTGObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tIsMapped()
virtual Bool_tIsMapSubwindows() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidLowerWindow()
virtual voidTObject::ls(Option_t* option = "") const
virtual voidMapRaised()
virtual voidMapSubwindows()
virtual voidMapWindow()
voidTObject::MayNotUse(const char* method) const
virtual voidMove(Int_t x, Int_t y)
virtual voidMoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual Int_tMustCleanup() const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual voidRaiseWindow()
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual voidRequestFocus()
voidTObject::ResetBit(UInt_t f)
virtual voidResize(UInt_t w, UInt_t h)
virtual voidTGObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
virtual voidSetBackgroundColor(Pixel_t color)
virtual voidSetBackgroundPixmap(Pixmap_t pixmap)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetEditable(Bool_t on = kTRUE)
virtual voidSetEditDisabled(UInt_t on = kEditDisable)
virtual voidSetMapSubwindows(Bool_t)
virtual voidSetName(const char* name)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetWindowName(const char* name = 0)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidUnmapWindow()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
TGWindow(Window_t id)
TGWindow(const TGWindow& tgw)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidDoRedraw()
voidTObject::MakeZombie()
TGWindow&operator=(const TGWindow& tgw)

Data Members

public:
enum EEditMode { kEditEnable
kEditDisable
kEditDisableEvents
kEditDisableGrab
kEditDisableLayout
kEditDisableResize
kEditDisableHeight
kEditDisableWidth
kEditDisableBtnEnable
kEditDisableKeyEnable
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TGClient*TGObject::fClientConnection to display server
UInt_tfEditDisabledflags used for "guibuilding"
Handle_tTGObject::fIdX11/Win32 Window identifier
TStringfNamename of the window used in SavePrimitive()
Bool_tfNeedRedrawkTRUE if window needs to be redrawn
const TGWindow*fParentParent window
static Int_tfgCountercounter of created windows in SavePrimitive

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGWindow(const TGWindow* p = 0, Int_t x = 0, Int_t y = 0, UInt_t w = 0, UInt_t h = 0, UInt_t border = 0, Int_t depth = 0, UInt_t clss = 0, void* visual = 0, SetWindowAttributes_t* attr = 0, UInt_t wtype = 0)
 Create a new window. Parent p must exist otherwise the root window
 is taken as parent. No arguments specified results in values from
 parent to be taken (or defaults).
TGWindow(TGClient* c, Window_t id, const TGWindow* parent = 0)
 Create a copy of a window.
~TGWindow()
 Window destructor. Unregisters the window.
void SetWindowName(const char* name = 0)
 Set window name.
const TGWindow * GetMainFrame()
 Returns top level main frame.
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 Move(Int_t x, Int_t y)
 Move the window.
void Resize(UInt_t w, UInt_t h)
 Resize the window.
void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
 Move and resize the window.
Bool_t IsMapped()
 Returns kTRUE if window is mapped on screen, kFALSE otherwise.
void Print(Option_t* option = "") const
 Print window id.
 If option is "tree" - print all parent windows tree
Int_t GetCounter()
 Return global window counter (total number of created windows).
const char * GetName()
 Return unique name, used in SavePrimitive methods.
TGWindow(Window_t id)
{ fClient = 0; fId = id; }
TGWindow(const TGWindow& tgw)
{ }
TGWindow& operator=(const TGWindow& tgw)
void DoRedraw()
{ }
const TGWindow * GetParent()
{ return fParent; }
void MapWindow()
{ gVirtualX->MapWindow(fId); }
void MapSubwindows()
{ gVirtualX->MapSubwindows(fId); }
void MapRaised()
{ gVirtualX->MapRaised(fId); }
void UnmapWindow()
{ gVirtualX->UnmapWindow(fId); }
void DestroyWindow()
{ gVirtualX->DestroyWindow(fId); }
void DestroySubwindows()
{ gVirtualX->DestroySubwindows(fId); }
void RaiseWindow()
{ gVirtualX->RaiseWindow(fId); }
void LowerWindow()
{ gVirtualX->LowerWindow(fId); }
void IconifyWindow()
{ gVirtualX->IconifyWindow(fId); }
void RequestFocus()
{ gVirtualX->SetInputFocus(fId); }
void SetBackgroundColor(Pixel_t color)
{ gVirtualX->SetWindowBackground(fId, color); }
void SetBackgroundPixmap(Pixmap_t pixmap)
{ gVirtualX->SetWindowBackgroundPixmap(fId, pixmap); }
Bool_t HandleExpose(Event_t* event)
{ if (event->fCount == 0) fClient->NeedRedraw(this); return kTRUE; }
Bool_t HandleEvent(Event_t* )
{ return kFALSE; }
Bool_t HandleTimer(TTimer* )
{ return kFALSE; }
Bool_t HandleIdleEvent(TGIdleHandler* )
{ return kFALSE; }
Bool_t IsEditable()
{ return (fClient->GetRoot() == this); }
UInt_t GetEditDisabled()
{ return fEditDisabled; }
void SetEditDisabled(UInt_t on = kEditDisable)
{ fEditDisabled = on; }
void SetEditable(Bool_t on = kTRUE)
{ if (!(fEditDisabled & kEditDisable)) fClient->SetRoot(on ? this : 0); }
Int_t MustCleanup()
{ return 0; }
void SetName(const char* name)
{ fName = name; }
void SetMapSubwindows(Bool_t )
{ }
Bool_t IsMapSubwindows()
{ return kTRUE; }

Author: Fons Rademakers 28/12/97
Last change: root/gui:$Id: TGWindow.h 23115 2008-04-10 13:35:37Z rdm $
Last generated: 2008-06-25 08:43
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.