library: libGui #include "TGImageMap.h"

# TGRegionWithId

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

## class TGRegionWithId : public TGRegion

| Inheritance Chart:
`TObject`
| <- | `TGRegion`
| <- | `TGRegionWithId` |

        public:

                          TGRegionWithId()
                          TGRegionWithId(Int_t id, Int_t x, Int_t y, UInt_t w, UInt_t h, TGRegion::ERegionType = kRectangle)
                          TGRegionWithId(Int_t id, Int_t n, TPoint* points, Bool_t winding = kFALSE)
                          TGRegionWithId(const TGRegionWithId& reg)
                          TGRegionWithId(const TGRegion& reg, Int_t id)
                  virtual ~TGRegionWithId()
           static TClass* Class()
                     void DisplayPopup()
                    Int_t GetId() const
             TGPopupMenu* GetPopup() const
               TGToolTip* GetToolTipText() const
          virtual TClass* IsA() const
          TGRegionWithId& operator=(const TGRegionWithId&)
                     void SetPopup(TGPopupMenu* popup)
                     void SetToolTipText(const char* text, Long_t delayms, const TGFrame* frame)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

                 Int_t fId     region id
            TGToolTip* fTip    tooltip
          TGPopupMenu* fPopup  popup menu

## Class Description

     TGImageMap (with TGRegion and TGRegionWithId help classes)

     A TGImageMap provides the functionality like a clickable image in
     a web browser with sensitive regions (MAP HTML tag).

TGRegionWithId() : TGRegion()

     Create GUI region (with id and possible tooltip).

TGRegionWithId(Int_t id, Int_t x, Int_t y, UInt_t w, UInt_t h, ERegionType type) : TGRegion(x, y, w, h, type)

     Create GUI region (with id and possible tooltip).

TGRegionWithId(Int_t id, Int_t n, TPoint *points, Bool_t winding) : TGRegion(n, points, winding)

     Create GUI region (with id and possible tooltip).

TGRegionWithId(const TGRegionWithId &reg) : TGRegion(reg)

     Copy constructor.

TGRegionWithId(const TGRegion &reg, Int_t id) : TGRegion(reg)

     Copy ctor which allows setting of new id.

~TGRegionWithId()

     Cleanup.

void DisplayPopup()

     Display popup menu associated with this region.

void SetToolTipText(const char *text, Long_t delayms, const TGFrame *frame)

     Set tool tip text associated with this region. The delay is in
     milliseconds (minimum 250). To remove tool tip call method with
     text = 0.

### Inline Functions

                      Int_t GetId() const
                 TGToolTip* GetToolTipText() const
               TGPopupMenu* GetPopup() const
                       void SetPopup(TGPopupMenu* popup)
                    TClass* Class()
                    TClass* IsA() const
                       void ShowMembers(TMemberInspector& insp, char* parent)
                       void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)
            TGRegionWithId& operator=(const TGRegionWithId&)

Author: Valeriy Onuchin & Fons Rademakers 18/10/2000
Last update: root/gui:$Name: $:$Id: TGImageMap.cxx,v 1.8 2005/06/24 20:30:12 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *