library: libGui
#include "TGWindow.h"


class description - header file - source file
viewCVS header - viewCVS source

class TGWindow: public TGObject

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-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)
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 = "")
virtual voidDestroySubwindows()
virtual voidDestroyWindow()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
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() const
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 voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(ostream& 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 = "")
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
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()
TGWindow&operator=(const TGWindow& tgw)

Data Members

enum EEditMode { kEditEnable
enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
const TGWindow*fParentParent window
Bool_tfNeedRedrawkTRUE if window needs to be redrawn
TStringfNamename of the window used in SavePrimitive()
static Int_tfgCountercounter of created windows in SavePrimitive
UInt_tfEditDisabledflags used for "guibuilding"
Handle_tTGObject::fIdX11/Win32 Window identifier
TGClient*TGObject::fClientConnection to display server

Class Description

 ROOT GUI Window base class.                                          

TGWindow(const TGWindow *p, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t wtype)
 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)
 Create a copy of a window.
 Window destructor. Unregisters the window.
void SetWindowName(const char *name)
 Set window name.
const TGWindow * GetMainFrame()
 Returns top level main frame.
void ReparentWindow(const TGWindow *p, Int_t x, Int_t y)
 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)
 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 /*on*/)
{ }
Bool_t IsMapSubwindows()
{ return kTRUE; }

Author: Fons Rademakers 28/12/97
Last update: root/gui:$Name: $:$Id: TGWindow.cxx,v 1.26 2006/05/18 16:32:02 antcheva Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

ROOT page - Class index - Class Hierarchy - Top of the page

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.