library: libGui #include "TGMdiMenu.h"

# TGMdiMenuBar

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

## class TGMdiMenuBar : public TGCompositeFrame

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGCompositeFrame`

<-

`TGMdiMenuBar`

        protected:

          void AddFrames(TGMdiTitleIcon* icon, TGMdiButtons* buttons)
          void RemoveFrames(TGMdiTitleIcon* icon, TGMdiButtons* buttons)

        public:

                          TGMdiMenuBar(const TGWindow* p, Int_t w = 1, Int_t h = 20)
                          TGMdiMenuBar(const TGMdiMenuBar&)
                  virtual ~TGMdiMenuBar()
                     void AddPopup(TGHotString* s, TGPopupMenu* menu, TGLayoutHints* l)
           static TClass* Class()
               TGMenuBar* GetMenuBar() const
          virtual TClass* IsA() const
             virtual void SavePrimitive(ofstream& out, Option_t* option)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          TGCompositeFrame* fLeft
          TGCompositeFrame* fRight
                 TGMenuBar* fBar
             TGLayoutHints* fLHint
             TGLayoutHints* fLeftHint
             TGLayoutHints* fRightHint
             TGLayoutHints* fBarHint

## Class Description

     TGMdiMenu.

     This file contains the TGMdiMenuBar class.

TGMdiMenuBar(const TGWindow *p, int w, int h) : TGCompositeFrame(p, w, h, kHorizontalFrame)

~TGMdiMenuBar()

void AddPopup(TGHotString *s, TGPopupMenu *menu, TGLayoutHints *l)

void AddFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)

     This is called from TGMdiMainFrame on Maximize().

void RemoveFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)

     This is called from TGMdiMainFrame on Restore()

void SavePrimitive(ofstream &out, Option_t *option)

     Save a MDI menu as a C++ statement(s) on output stream out

### Inline Functions

              TGMenuBar* GetMenuBar() const
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
            TGMdiMenuBar TGMdiMenuBar(const TGMdiMenuBar&)

Author: Bertrand Bellenot 20/08/2004
Last update: root/gui:$Name: $:$Id: TGMdiMenu.cxx,v 1.4 2004/10/21 14:25:30 rdm Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *