library: libGui
#include "TGMenu.h"

TGMenuTitle


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

class TGMenuTitle : public TGFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGMenuTitle

    protected:
virtual void DoRedraw() public:
TGMenuTitle(const TGWindow* p = 0, TGHotString* s = 0, TGPopupMenu* menu = 0, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), UInt_t options = 0) TGMenuTitle(const TGMenuTitle&) virtual ~TGMenuTitle() static TClass* Class() virtual void DoSendMessage() static FontStruct_t GetDefaultFontStruct() static const TGGC& GetDefaultGC() const static const TGGC& GetDefaultSelectedGC() const Int_t GetHotKeyCode() const TGPopupMenu* GetMenu() const virtual const char* GetName() const Bool_t GetState() const virtual TClass* IsA() const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetState(Bool_t state) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TGPopupMenu* fMenu attached popup menu TGHotString* fLabel menu title Int_t fTitleId id of selected menu item void* fTitleData user data associated with selected item Bool_t fState menu title state (active/not active) Int_t fHkeycode hot key code FontStruct_t fFontStruct font GContext_t fNormGC GContext_t fSelGC normal and selection graphics contexts static const TGFont* fgDefaultFont static const TGGC* fgDefaultSelectedGC static const TGGC* fgDefaultGC

Class Description

                                                                      
 TGMenuBar, TGPopupMenu, TGMenuTitle and TGMenuEntry                  
                                                                      
 This header contains all different menu classes.                     
                                                                      
 Selecting a menu item will generate the event:                       
 kC_COMMAND, kCM_MENU, menu id, user data.                            
                                                                      


TGMenuTitle(const TGWindow *p, TGHotString *s, TGPopupMenu *menu, GContext_t norm, FontStruct_t font, UInt_t options) : TGFrame(p, 1, 1, options)
 Create a menu title. This object is created by a menu bar when adding
 a popup menu. The menu title adopts the hotstring.

void SetState(Bool_t state)
 Set state of menu title.

void DoRedraw()
 Draw a menu title.

void DoSendMessage()
 Send final selected menu item to be processed.

FontStruct_t GetDefaultFontStruct()

const TGGC& GetDefaultGC()

const TGGC& GetDefaultSelectedGC()

void SavePrimitive(ofstream &out, Option_t *option)
 Save a title menu widget as a C++ statement(s) on output stream out.



Inline Functions


                void ~TGMenuTitle()
              Bool_t GetState() const
               Int_t GetHotKeyCode() const
        TGPopupMenu* GetMenu() const
         const char* GetName() const
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
                void StreamerNVirtual(TBuffer& b)
         TGMenuTitle TGMenuTitle(const TGMenuTitle&)


Author: Fons Rademakers 09/01/98
Last update: root/gui:$Name: $:$Id: TGMenu.cxx,v 1.46 2004/10/21 14:25:30 rdm 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.