12 #ifndef ROOT_TGImageMap
13 #define ROOT_TGImageMap
TGRegionWithId()
Create GUI region (with id and possible tooltip).
TGRegion operator^(const TGRegion &r) const
void SetCursor(ECursor cursor=kHand)
TGRegion & operator-=(const TGRegion &r)
TGDimension GetDimension() const
Return dimension of region (widht, height).
TGImageMap(const TGImageMap &)
void DisplayPopup()
Display popup menu associated with this region.
Bool_t operator!=(const TGRegion &r) const
virtual void DoubleClicked()
Handle when mouse is double clicked on main map.
TGRegion Subtract(const TGRegion &r) const
Returns a region which is r subtracted from this region.
TGRegion Intersect(const TGRegion &r) const
Returns a region which is the intersection of this region and r.
TGToolTip * GetToolTipText() const
void SetToolTipText(const char *text, Long_t delayms=300)
Set tooltip text for main region.
TGPopupMenu * GetPopup(Int_t id)
Return popup for regions with specified id.
virtual ~TGRegion()
Delete a region.
TGRegion operator|(const TGRegion &r) const
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events.
TGRegion & operator^=(const TGRegion &r)
R__EXTERN TGRegionWithId * gCurrentRegion
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click events.
TGRegionWithId & operator=(const TGRegionWithId &)
#define ClassDef(name, id)
TGRegion Eor(const TGRegion &r) const
Returns a region which is the difference between the union and intersection this region and r...
void SetPopup(TGPopupMenu *popup)
TGRegion()
Create a region object.
virtual ~TGRegionWithId()
Cleanup.
TGRegion & operator=(const TGRegion &r)
Region assignment operator.
TGRegion & operator|=(const TGRegion &r)
TGRegion operator-(const TGRegion &r) const
TGRegion & operator+=(const TGRegion &r)
TGPopupMenu * GetPopup() const
void SetPicture(const TGPicture *)
Change a picture in a picture button.
Array of shorts (16 bits per element).
TGImageMap & operator=(const TGImageMap &)
virtual Bool_t HandleButton(Event_t *event)
Handle button events.
Bool_t IsNull() const
Return true if region is not set.
TGRegion operator&(const TGRegion &r) const
TGRegion operator+(const TGRegion &r) const
TGPosition GetPosition() const
Return position of region (x, y).
Bool_t operator==(const TGRegion &r) const
Region == operator.
TGRegion Unite(const TGRegion &r) const
Return the union of this region with r.
virtual void OnMouseOver(Int_t id)
Handle when mouse moves over region id.
virtual ~TGImageMap()
Cleanup image map widget.
virtual void OnMouseOut(Int_t id)
Handle when mouse moves from region id.
Mother of all ROOT objects.
TGRegion & operator&=(const TGRegion &r)
virtual void RegionClicked(Int_t id)
Handle when mouse was clicked on region id.
void AddRegion(const TGRegion ®ion, Int_t id)
Add a region to the image map.
Bool_t Contains(const TPoint &p) const
Return true if point p is contained in the region.
Bool_t IsEmpty() const
Return true if region is empty.
TGPopupMenu * CreatePopup(Int_t id)
Create popoup menu or returns existing for regions with specified id.
TGRegion CopyRegion() const
Copy a region.
void SetToolTipText(const char *text, Long_t delayms, const TGFrame *frame)
Set tool tip text associated with this region.