library: libGui
#include "TGFrame.h"

TGGroupFrame


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

class TGGroupFrame : public TGCompositeFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGGroupFrame
<-
TGButtonGroup
<-
TGHButtonGroup
TGVButtonGroup
    private:
TGGroupFrame& operator=(const TGGroupFrame&) protected:
virtual void DoRedraw() public:
TGGroupFrame(const TGWindow* p, TGString* title, UInt_t options = kVerticalFrame, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), Pixel_t back = GetDefaultFrameBackground()) TGGroupFrame(const TGWindow* p = 0, const char* title = "0", UInt_t options = kVerticalFrame, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), Pixel_t back = GetDefaultFrameBackground()) TGGroupFrame(const TGGroupFrame& tgf) virtual ~TGGroupFrame() static TClass* Class() virtual void DrawBorder() static FontStruct_t GetDefaultFontStruct() static const TGGC& GetDefaultGC() virtual TGDimension GetDefaultSize() const FontStruct_t GetFontStruct() const GContext_t GetNormGC() const virtual const char* GetTitle() const Int_t GetTitlePos() const Bool_t HasOwnFont() const virtual TClass* IsA() const virtual void Rename(const char* title) virtual void SavePrimitive(ostream& out, Option_t* option = "") virtual void SetTextColor(Pixel_t color, Bool_t local = kTRUE) virtual void SetTextFont(const char* fontName, Bool_t local = kTRUE) virtual void SetTextFont(FontStruct_t font, Bool_t local = kTRUE) virtual void SetTitle(TGString* title) virtual void SetTitle(const char* title) virtual void SetTitlePos(TGGroupFrame::ETitlePos pos = kLeft) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TGString* fText title text FontStruct_t fFontStruct title fontstruct GContext_t fNormGC title graphics context Int_t fTitlePos *OPTION={GetMethod="GetTitlePos";SetMethod="SetTitlePos";Items=(-1="Left",0="Center",1="Right")}* Bool_t fHasOwnFont kTRUE - font defined locally, kFALSE - globally static const TGFont* fgDefaultFont static const TGGC* fgDefaultGC public:
static const TGGroupFrame::ETitlePos kLeft static const TGGroupFrame::ETitlePos kCenter static const TGGroupFrame::ETitlePos kRight

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 children 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.                                                   
                                                                      

TGGroupFrame(const TGWindow *p, TGString *title, UInt_t options, GContext_t norm, FontStruct_t font, Pixel_t back)
 Create a group frame. The title will be adopted and deleted by the
 group frame.
TGGroupFrame(const TGWindow *p, const char *title, UInt_t options, GContext_t norm, FontStruct_t font, Pixel_t back)
 Create a group frame.
~TGGroupFrame()
 Delete a group frame.
TGDimension GetDefaultSize()
 Returns default size.
void DoRedraw()
 Redraw the group frame. Need special DoRedraw() since we need to
 redraw with fBorderWidth=0.
void SetTextColor(Pixel_t color, Bool_t local)
 Changes text color.
 If local is true color is changed locally, otherwise - globally.
void SetTextFont(FontStruct_t font, Bool_t local)
 Changes text font.
 If local is true font is changed locally - otherwise globally.
void SetTextFont(const char *fontName, Bool_t local)
 Changes text font specified by name.
 If local is true font is changed locally - otherwise globally.
Bool_t HasOwnFont()
 Returns kTRUE if text attributes are unique,
 returns kFALSE if text attributes are shared (global).
void DrawBorder()
 Draw border of around the group frame.

 if frame is kRaisedFrame  - a frame border is of "wall style",
 otherwise of "groove style".
void SetTitle(TGString *title)
 Set or change title of the group frame. Titlte TGString is adopted
 by the TGGroupFrame.
void SetTitle(const char *title)
 Set or change title of the group frame.
FontStruct_t GetDefaultFontStruct()
 Return default font structure in use.
const TGGC & GetDefaultGC()
 Return default graphics context in use.
void SavePrimitive(ostream &out, Option_t *option /*= ""*/)
 Save a group frame widget as a C++ statement(s) on output stream out.
TGFrame& operator=(const TGFrame&)
TGGroupFrame(const TGWindow *p, TGString *title, UInt_t options = kVerticalFrame, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), Pixel_t back = GetDefaultFrameBackground())
void Rename(const char *title)
Int_t GetTitlePos()
void SetTitlePos(ETitlePos pos = kLeft)
GContext_t GetNormGC()
FontStruct_t GetFontStruct()

Author: Fons Rademakers 03/01/98
Last update: root/gui:$Name: $:$Id: TGFrame.cxx,v 1.137 2006/07/09 05:27:54 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.