library: libGui #include "TGFrame.h"

# TGGroupFrame

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

## class TGGroupFrame : public TGCompositeFrame

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGCompositeFrame`

<-

`TGGroupFrame`

<-

`TGButtonGroup`

<-

`TGHButtonGroup` |

`TGVButtonGroup` |

        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, const char* title, UInt_t options = kVerticalFrame, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), Pixel_t back = GetDefaultFrameBackground())
                              TGGroupFrame(const TGGroupFrame&)
                      virtual ~TGGroupFrame()
               static TClass* Class()
                 virtual void DrawBorder()
          static FontStruct_t GetDefaultFontStruct()
           static const TGGC& GetDefaultGC() const
          virtual TGDimension GetDefaultSize() const
          virtual const char* GetTitle() const
                        Int_t GetTitlePos() const
              virtual TClass* IsA() const
                 virtual void SavePrimitive(ofstream& out, Option_t* option)
                 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      title position
          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, ULong_t back) : TGCompositeFrame(p, 1, 1, options, 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, ULong_t back) : TGCompositeFrame(p, 1, 1, options, back)

     Create a group frame.

~TGGroupFrame()

     Delete a group frame.

TGDimension GetDefaultSize() const

     Returns default size.

void DoRedraw()

     Redraw the group frame. Need special DoRedraw() since we need to
     redraw with fBorderWidth=0.

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

const TGGC& GetDefaultGC()

void SavePrimitive(ofstream &out, Option_t *option)

     Save a group frame widget as a C++ statement(s) on output stream out

### Inline Functions

                    void SetTitlePos(TGGroupFrame::ETitlePos pos = kLeft)
                   Int_t GetTitlePos() const
             const char* GetTitle() const
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
            TGGroupFrame TGGroupFrame(const TGGroupFrame&)

Author: Fons Rademakers 03/01/98
Last update: root/gui:$Name: $:$Id: TGFrame.cxx,v 1.59 2004/06/25 17:15:23 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *