class description - source file - inheritance tree

class TGFrame : public TGWindow

virtual void DoRedraw() GContext_t GetBckgndGC() GContext_t GetBlackGC() ULong_t GetBlackPixel() ULong_t GetDefaultFrameBackground() ULong_t GetDefaultSelectedBackground() GContext_t GetHilightGC() Time_t GetLastClick() virtual const TGWindow* GetMainFrame() const GContext_t GetShadowGC() GContext_t GetWhiteGC() ULong_t GetWhitePixel() public:
TGFrame TGFrame(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = 0, ULong_t back = fgDefaultFrameBackground) TGFrame TGFrame(TGClient* c, Window_t id, const TGWindow* parent = 0) TGFrame TGFrame(TGFrame&) virtual void ~TGFrame() virtual void ChangeBackground(ULong_t back) virtual void ChangeOptions(UInt_t options) TClass* Class() virtual void DrawBorder() virtual ULong_t GetBackground() const Int_t GetBorderWidth() const virtual UInt_t GetDefaultHeight() const virtual TGDimension GetDefaultSize() const virtual UInt_t GetDefaultWidth() const UInt_t GetHeight() const virtual UInt_t GetOptions() const TGDimension GetSize() const UInt_t GetWidth() const Int_t GetX() const Int_t GetY() const virtual Bool_t HandleButton(Event_t*) virtual Bool_t HandleClientMessage(Event_t* event) virtual Bool_t HandleConfigureNotify(Event_t* event) virtual Bool_t HandleCrossing(Event_t*) virtual Bool_t HandleDoubleClick(Event_t*) virtual Bool_t HandleEvent(Event_t* event) virtual Bool_t HandleFocusChange(Event_t*) virtual Bool_t HandleKey(Event_t*) virtual Bool_t HandleMotion(Event_t*) virtual Bool_t HandleSelection(Event_t*) virtual Bool_t HandleSelectionClear(Event_t*) virtual Bool_t HandleSelectionRequest(Event_t*) virtual TClass* IsA() const virtual void Layout() virtual void MapSubwindows() 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 Bool_t ProcessMessage(Long_t, Long_t, Long_t) virtual void Resize(TGDimension size) virtual void Resize(UInt_t w, UInt_t h) virtual void SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2) void SetHeight(UInt_t h) void SetSize(const TGDimension& s) void SetWidth(UInt_t w) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

Int_t fX frame x position Int_t fY frame y position UInt_t fWidth frame width UInt_t fHeight frame height Int_t fBorderWidth frame border width UInt_t fOptions frame options ULong_t fBackground frame background color static ULong_t fgDefaultFrameBackground static ULong_t fgDefaultSelectedBackground static ULong_t fgWhitePixel static ULong_t fgBlackPixel static GContext_t fgBlackGC static GContext_t fgWhiteGC static GContext_t fgHilightGC static GContext_t fgShadowGC static GContext_t fgBckgndGC static Time_t fgLastClick static UInt_t fgLastButton static UInt_t fgDbx static UInt_t fgDby static Window_t fgDbw

See also

TGButton, TGCanvas, TGCompositeFrame, TGDoubleSlider, TGHorizontal3DLine, TGIcon, TGLBEntry, TGLVEntry, TGLabel, TGListTree, TGMenuTitle, TGPopupMenu, TGScrollBar, TGScrollBarElement, TGSlider, TGStatusBar, TGTabElement, TGTextEntry, TGTextFrame

Class Description

 TGFrame, TGCompositeFrame, TGVerticalFrame, TGHorizontalFrame,       
 TGMainFrame, TGTransientFrame and TGGroupFrame                       
 The frame classes describe the different "dressed" GUI windows.      
 The TGFrame class is a subclasses of TGWindow, and is used as base   
 class for some simple widgets (buttons, labels, etc.).               
 It provides:                                                         
  - position & dimension fields                                       
  - an 'options' attribute (see constant above)                       
  - a generic event handler                                           
  - a generic layout mechanism                                        
  - a generic border                                                  
 The TGCompositeFrame class is the base class for composite widgets   
 (menu bars, list boxes, etc.).                                       
 It provides:                                                         
  - a layout manager                                                  
  - a frame container (TList *)                                       
 The TGVerticalFrame and TGHorizontalFrame are composite frame that   
 layout their cildren in vertical or horizontal way.                  
 The TGMainFrame class defines top level windows that interact with   
 the system Window Manager.                                           
 The TGTransientFrame class defines transient windows that typically  
 are used for dialogs windows.                                        
 The TGGroupFrame is a composite frame with a border and a title.     
 It is typically used to group a number of logically related widgets  
 visually together.                                                   



TGFrame(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGWindow(p, 0, 0, w, h, 0, 0, 0, 0, 0)
 Create a TGFrame object. Options is an OR of the EFrameTypes.

TGFrame(TGClient *c, Window_t id, const TGWindow *parent) : TGWindow(c, id, parent)
 Create a frame using an externally created window. For example
 to register the root window (called by TGClient), or a window
 created via TVirtualX::InitWindow() (id is obtained with TVirtualX::GetWindowID()).

void ChangeBackground(ULong_t back)
 Change frame background color.

void ChangeOptions(UInt_t options)
 Change frame options. Options is an OR of the EFrameTypes.

void DrawBorder()
 Draw frame border.

void DoRedraw()
 Redraw the frame.

Bool_t HandleConfigureNotify(Event_t *event)
 This event is generated when the frame is resized.

Bool_t HandleEvent(Event_t *event)
 Handle all frame events. Events are dispatched to the specific
 event handlers.

void Move(Int_t x, Int_t y)
 Move frame.

void Resize(UInt_t w, UInt_t h)
 Resize the frame.

void Resize(TGDimension size)
 Resize the frame.

void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
 Move and/or resize the frame.

void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
 Send message (i.e. event) to window w. Message is encoded in one long
 as message type and up to two long parameters.

Bool_t HandleClientMessage(Event_t *event)
 Handle a client message. Client messages are the ones sent via
 TGFrame::SendMessage (typically by widgets).

ULong_t GetDefaultFrameBackground()

ULong_t GetDefaultSelectedBackground()

ULong_t GetWhitePixel()

ULong_t GetBlackPixel()

GContext_t GetBlackGC()

GContext_t GetWhiteGC()

GContext_t GetHilightGC()

GContext_t GetShadowGC()

GContext_t GetBckgndGC()

Time_t GetLastClick()

Inline Functions

        const TGWindow* GetMainFrame() const
                 Bool_t HandleButton(Event_t*)
                 Bool_t HandleDoubleClick(Event_t*)
                 Bool_t HandleCrossing(Event_t*)
                 Bool_t HandleMotion(Event_t*)
                 Bool_t HandleKey(Event_t*)
                 Bool_t HandleFocusChange(Event_t*)
                 Bool_t HandleSelection(Event_t*)
                 Bool_t HandleSelectionRequest(Event_t*)
                 Bool_t HandleSelectionClear(Event_t*)
                 Bool_t ProcessMessage(Long_t, Long_t, Long_t)
                 UInt_t GetDefaultWidth() const
                 UInt_t GetDefaultHeight() const
            TGDimension GetDefaultSize() const
                ULong_t GetBackground() const
                 UInt_t GetOptions() const
                   void Layout()
                   void MapSubwindows()
                 UInt_t GetWidth() const
                 UInt_t GetHeight() const
            TGDimension GetSize() const
                  Int_t GetX() const
                  Int_t GetY() const
                  Int_t GetBorderWidth() const
                   void SetWidth(UInt_t w)
                   void SetHeight(UInt_t h)
                   void SetSize(const TGDimension& s)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                TGFrame TGFrame(TGFrame&)
                   void ~TGFrame()

Author: Fons Rademakers 03/01/98
Last update: 2.23/03 22/09/99 18.15.23 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *

ROOT page - Class index - 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.