library: libGui
#include "TGWindow.h"


class description - source file - inheritance tree (.pdf)

class TGWindow : public TGObject

Inheritance Chart:

TGWindow(Window_t id) virtual void DoRedraw() public:
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) TGWindow(TGClient* c, Window_t id, const TGWindow* parent = 0) TGWindow(const TGWindow&) virtual ~TGWindow() static TClass* Class() virtual void DestroySubwindows() virtual void DestroyWindow() static Int_t GetCounter() virtual const TGWindow* GetMainFrame() const virtual const char* GetName() const const TGWindow* GetParent() const virtual Bool_t HandleEvent(Event_t*) virtual Bool_t HandleExpose(Event_t* event) virtual Bool_t HandleIdleEvent(TGIdleHandler*) virtual Bool_t HandleTimer(TTimer*) virtual void IconifyWindow() virtual TClass* IsA() const virtual Bool_t IsEditable() const virtual Bool_t IsEditDisabled() const virtual Bool_t IsMapped() virtual Bool_t IsMapSubwindows() const virtual void LowerWindow() virtual void MapRaised() virtual void MapSubwindows() virtual void MapWindow() virtual void Move(Int_t x, Int_t y) virtual void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h) virtual Int_t MustCleanup() const virtual void Print(Option_t* option = "") const virtual void RaiseWindow() virtual void ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0) virtual void RequestFocus() virtual void Resize(UInt_t w, UInt_t h) virtual void SetBackgroundColor(Pixel_t color) virtual void SetBackgroundPixmap(Pixmap_t pixmap) virtual void SetEditable(Bool_t on = kTRUE) virtual void SetEditDisabled(Bool_t on = kTRUE) virtual void SetMapSubwindows(Bool_t) virtual void SetName(const char* name) virtual void SetWindowName(const char* name = "0") virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual void UnmapWindow()

Data Members

const TGWindow* fParent Parent window Bool_t fNeedRedraw kTRUE if window needs to be redrawn TString fName name of the window used in SavePrimitive() static Int_t fgCounter counter of created windows in SavePrimitive Bool_t fEditDisabled if kTRUE window edit is disabled

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() const
 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) 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).

Inline Functions

                   void DoRedraw()
               TGWindow TGWindow(TGClient* c, Window_t id, const TGWindow* parent = 0)
        const TGWindow* GetParent() const
                   void MapWindow()
                   void MapSubwindows()
                   void MapRaised()
                   void UnmapWindow()
                   void DestroyWindow()
                   void DestroySubwindows()
                   void RaiseWindow()
                   void LowerWindow()
                   void IconifyWindow()
                   void RequestFocus()
                   void SetBackgroundColor(Pixel_t color)
                   void SetBackgroundPixmap(Pixmap_t pixmap)
                 Bool_t HandleExpose(Event_t* event)
                 Bool_t HandleEvent(Event_t*)
                 Bool_t HandleTimer(TTimer*)
                 Bool_t HandleIdleEvent(TGIdleHandler*)
                 Bool_t IsEditable() const
                 Bool_t IsEditDisabled() const
                   void SetEditDisabled(Bool_t on = kTRUE)
                   void SetEditable(Bool_t on = kTRUE)
                  Int_t MustCleanup() const
            const char* GetName() const
                   void SetName(const char* name)
                   void SetMapSubwindows(Bool_t)
                 Bool_t IsMapSubwindows() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
               TGWindow TGWindow(const TGWindow&)

Author: Fons Rademakers 28/12/97
Last update: root/gui:$Name: $:$Id: TGWindow.cxx,v 1.23 2005/01/13 20:03:31 brun 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.