TGToolTip Class Reference

#include <TGToolTip.h>

Inheritance diagram for TGToolTip:

TGCompositeFrame TGCompositeFrame TGFrame TGFrame TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 TGToolTip (const TGWindow *p=0, const TGFrame *f=0, const char *text=0, Long_t delayms=350)
 TGToolTip (const TGWindow *p, const TBox *b, const char *text, Long_t delayms)
 TGToolTip (const TBox *b, const char *text, Long_t delayms)
 TGToolTip (Int_t x, Int_t y, const char *text, Long_t delayms)
virtual ~TGToolTip ()
virtual void DrawBorder ()
Bool_t HandleTimer (TTimer *t)
void Show (Int_t x, Int_t y)
void Hide ()
void Reset ()
void Reset (const TVirtualPad *parent)
void SetText (const char *new_text)
void SetPosition (Int_t x, Int_t y)
void SetDelay (Long_t delayms)
const TGStringGetText () const
 TGToolTip (const TGWindow *p=0, const TGFrame *f=0, const char *text=0, Long_t delayms=350)
 TGToolTip (const TGWindow *p, const TBox *b, const char *text, Long_t delayms)
 TGToolTip (const TBox *b, const char *text, Long_t delayms)
 TGToolTip (Int_t x, Int_t y, const char *text, Long_t delayms)
virtual ~TGToolTip ()
virtual void DrawBorder ()
Bool_t HandleTimer (TTimer *t)
void Show (Int_t x, Int_t y)
void Hide ()
void Reset ()
void Reset (const TVirtualPad *parent)
void SetText (const char *new_text)
void SetPosition (Int_t x, Int_t y)
void SetDelay (Long_t delayms)
const TGStringGetText () const

Private Member Functions

 TGToolTip (const TGToolTip &)
TGToolTipoperator= (const TGToolTip &)
 TGToolTip (const TGToolTip &)
TGToolTipoperator= (const TGToolTip &)

Private Attributes

TGLabelfLabel
TGLayoutHintsfL1
TTimerfDelay
const TGFramefWindow
const TVirtualPadfPad
const TBoxfBox
Int_t fX
Int_t fY
TGLabelfLabel
TGLayoutHintsfL1
TTimerfDelay
const TGFramefWindow
const TVirtualPadfPad
const TBoxfBox

Detailed Description

Definition at line 37 of file TGToolTip.h.


Constructor & Destructor Documentation

TGToolTip::TGToolTip ( const TGToolTip  )  [private]

TGToolTip::TGToolTip ( const TGWindow p = 0,
const TGFrame f = 0,
const char *  text = 0,
Long_t  delayms = 350 
)

Definition at line 71 of file TGToolTip.cxx.

References TGCompositeFrame::AddFrame(), fBox, TGObject::fClient, fDelay, TGObject::fId, fL1, fLabel, SetWindowAttributes_t::fMask, SetWindowAttributes_t::fOverrideRedirect, fPad, SetWindowAttributes_t::fSaveUnder, fWindow, fX, fY, TGCompositeFrame::GetDefaultSize(), TGClient::GetResourcePool(), TGResourcePool::GetTipBgndColor(), gVirtualX, kLHintsLeft, kLHintsTop, kTRUE, kWAOverrideRedirect, kWASaveUnder, TGCompositeFrame::MapSubwindows(), TGFrame::Resize(), and TGFrame::SetBackgroundColor().

TGToolTip::TGToolTip ( const TGWindow p,
const TBox b,
const char *  text,
Long_t  delayms 
)

Definition at line 104 of file TGToolTip.cxx.

References TGCompositeFrame::AddFrame(), box(), fBox, TGObject::fClient, fDelay, TGObject::fId, fL1, fLabel, SetWindowAttributes_t::fMask, SetWindowAttributes_t::fOverrideRedirect, fPad, SetWindowAttributes_t::fSaveUnder, fWindow, TGCompositeFrame::GetDefaultSize(), TGClient::GetResourcePool(), TGResourcePool::GetTipBgndColor(), gVirtualX, kLHintsLeft, kLHintsTop, kTRUE, kWAOverrideRedirect, kWASaveUnder, TGCompositeFrame::MapSubwindows(), TGFrame::Resize(), and TGFrame::SetBackgroundColor().

TGToolTip::TGToolTip ( const TBox b,
const char *  text,
Long_t  delayms 
)

Definition at line 137 of file TGToolTip.cxx.

References TGCompositeFrame::AddFrame(), box(), fBox, TGObject::fClient, fDelay, TGObject::fId, fL1, fLabel, SetWindowAttributes_t::fMask, SetWindowAttributes_t::fOverrideRedirect, fPad, SetWindowAttributes_t::fSaveUnder, fWindow, TGCompositeFrame::GetDefaultSize(), TGClient::GetResourcePool(), TGResourcePool::GetTipBgndColor(), gVirtualX, kLHintsLeft, kLHintsTop, kTRUE, kWAOverrideRedirect, kWASaveUnder, TGCompositeFrame::MapSubwindows(), TGFrame::Resize(), and TGFrame::SetBackgroundColor().

TGToolTip::TGToolTip ( Int_t  x,
Int_t  y,
const char *  text,
Long_t  delayms 
)

Definition at line 169 of file TGToolTip.cxx.

References TGCompositeFrame::AddFrame(), fBox, TGObject::fClient, fDelay, TGObject::fId, fL1, fLabel, SetWindowAttributes_t::fMask, SetWindowAttributes_t::fOverrideRedirect, fPad, SetWindowAttributes_t::fSaveUnder, fWindow, fX, fY, TGCompositeFrame::GetDefaultSize(), TGClient::GetResourcePool(), TGResourcePool::GetTipBgndColor(), gVirtualX, kLHintsLeft, kLHintsTop, kTRUE, kWAOverrideRedirect, kWASaveUnder, TGCompositeFrame::MapSubwindows(), TGFrame::Resize(), and TGFrame::SetBackgroundColor().

TGToolTip::~TGToolTip (  )  [virtual]

Definition at line 201 of file TGToolTip.cxx.

References fDelay, fL1, and fLabel.

TGToolTip::TGToolTip ( const TGToolTip  )  [private]

TGToolTip::TGToolTip ( const TGWindow p = 0,
const TGFrame f = 0,
const char *  text = 0,
Long_t  delayms = 350 
)

TGToolTip::TGToolTip ( const TGWindow p,
const TBox b,
const char *  text,
Long_t  delayms 
)

TGToolTip::TGToolTip ( const TBox b,
const char *  text,
Long_t  delayms 
)

TGToolTip::TGToolTip ( Int_t  x,
Int_t  y,
const char *  text,
Long_t  delayms 
)

virtual TGToolTip::~TGToolTip (  )  [virtual]


Member Function Documentation

TGToolTip& TGToolTip::operator= ( const TGToolTip  )  [private]

void TGToolTip::DrawBorder (  )  [virtual]

Reimplemented from TGFrame.

Definition at line 211 of file TGToolTip.cxx.

References TGFrame::fHeight, TGObject::fId, TGFrame::fWidth, TGFrame::GetBlackGC(), TGFrame::GetShadowGC(), and gVirtualX.

Bool_t TGToolTip::HandleTimer ( TTimer t  )  [virtual]

Reimplemented from TGWindow.

Definition at line 277 of file TGToolTip.cxx.

References TGRectangle::Contains(), fBox, TGObject::fClient, fDelay, TGFrame::fHeight, fLabel, fPad, TGFrame::fWidth, fWindow, fX, fY, TVirtualPad::GetCanvasID(), TGCompositeFrame::GetDefaultSize(), TGClient::GetDisplayHeight(), TGClient::GetDisplayWidth(), TGFrame::GetHeight(), TGObject::GetId(), TGWindow::GetParent(), TGFrame::GetWidth(), TVirtualPad::GetX1(), TVirtualPad::GetX2(), TVirtualPad::GetY1(), TVirtualPad::GetY2(), gVirtualX, kTRUE, mask, TTimer::Remove(), TGFrame::Resize(), TGLabel::SetWrapLength(), Show(), x, TVirtualPad::XtoAbsPixel(), y, and TVirtualPad::YtoAbsPixel().

void TGToolTip::Show ( Int_t  x,
Int_t  y 
)

Definition at line 222 of file TGToolTip.cxx.

References TQObject::Emit(), TGFrame::MapWindow(), TGFrame::Move(), and TGWindow::RaiseWindow().

Referenced by HandleTimer().

void TGToolTip::Hide (  ) 

Definition at line 238 of file TGToolTip.cxx.

References TQObject::Emit(), fDelay, TTimer::Remove(), and TGFrame::UnmapWindow().

Referenced by TRootCanvas::EventInfo(), EventInfo(), TMemStatShow::EventInfo1(), TMemStatShow::EventInfo2(), TStructViewerGUI::GLWidgetProcessedEventSlot(), TGTextEntry::HandleButton(), TGListTree::HandleButton(), TGRadioButton::HandleButton(), TGImageMap::HandleButton(), TGButton::HandleButton(), TEveGedNameTextButton::HandleButton(), TGedNameFrame::HandleButton(), TGCheckButton::HandleButton(), TGRepeatFireButton::HandleButton(), TRootCanvas::HandleContainerButton(), TGedPatternFrame::HandleCrossing(), TGuiBldToolButton::HandleCrossing(), TGedNameFrame::HandleCrossing(), TGToolButton::HandleCrossing(), TGTextEntry::HandleCrossing(), TGCheckButton::HandleCrossing(), TTVLVEntry::HandleCrossing(), TGRadioButton::HandleCrossing(), TGButton::HandleCrossing(), TGImageMap::HandleDoubleClick(), TGListTree::HandleKey(), TGSplitButton::HandleKey(), TGTextEntry::HandleKey(), TGLEventHandler::HandleKey(), TGTextButton::HandleKey(), TGCheckButton::HandleKey(), TGRadioButton::HandleKey(), TGSplitButton::HandleSCrossing(), TGSplitButton::HandleSKey(), TStructViewerGUI::MouseOverSlot(), TGImageMap::OnMouseOut(), TGImageMap::OnMouseOver(), TRootCanvas::ReallyDelete(), TGLEventHandler::RemoveTooltip(), and TGLEventHandler::TGLEventHandler().

void TGToolTip::Reset (  ) 

Definition at line 251 of file TGToolTip.cxx.

References TSystem::AddTimer(), TQObject::Emit(), fDelay, gSystem, and TTimer::Reset().

Referenced by TRootCanvas::EventInfo(), EventInfo(), TMemStatShow::EventInfo1(), TMemStatShow::EventInfo2(), TGedPatternFrame::HandleCrossing(), TGuiBldToolButton::HandleCrossing(), TGedNameFrame::HandleCrossing(), TGToolButton::HandleCrossing(), TGCheckButton::HandleCrossing(), TTVLVEntry::HandleCrossing(), TGRadioButton::HandleCrossing(), TGButton::HandleCrossing(), TGSplitButton::HandleSCrossing(), TStructViewerGUI::MouseOverSlot(), TGImageMap::OnMouseOut(), TGImageMap::OnMouseOver(), TGListTree::SetToolTipText(), and TGLEventHandler::TriggerTooltip().

void TGToolTip::Reset ( const TVirtualPad parent  ) 

Definition at line 263 of file TGToolTip.cxx.

References TSystem::AddTimer(), fDelay, fPad, gSystem, and TTimer::Reset().

void TGToolTip::SetText ( const char *  new_text  ) 

Definition at line 379 of file TGToolTip.cxx.

References fLabel, TGCompositeFrame::GetDefaultSize(), TGFrame::Resize(), and TGLabel::SetText().

Referenced by TRootCanvas::EventInfo(), EventInfo(), TMemStatShow::EventInfo1(), TMemStatShow::EventInfo2(), TStructViewerGUI::MouseOverSlot(), TGedNameFrame::SetModel(), TGListTree::SetToolTipText(), and TGLEventHandler::TriggerTooltip().

void TGToolTip::SetPosition ( Int_t  x,
Int_t  y 
)

Definition at line 396 of file TGToolTip.cxx.

References fWindow, fX, fY, TGFrame::GetHeight(), and TGFrame::GetWidth().

Referenced by TRootCanvas::EventInfo(), EventInfo(), TMemStatShow::EventInfo1(), TMemStatShow::EventInfo2(), TStructViewerGUI::MouseOverSlot(), TGListTree::SetToolTipText(), and TGLEventHandler::TriggerTooltip().

void TGToolTip::SetDelay ( Long_t  delayms  ) 

Definition at line 388 of file TGToolTip.cxx.

References fDelay, and TTimer::SetTime().

Referenced by TGLEventHandler::SetMouseOverTooltipDelay(), and TRootGuiBuilder::TRootGuiBuilder().

const TGString * TGToolTip::GetText (  )  const

Definition at line 419 of file TGToolTip.cxx.

References fLabel, and TGLabel::GetText().

Referenced by TGTextEntry::SavePrimitive(), TGNumberEntry::SavePrimitive(), TGNumberEntryField::SavePrimitive(), TGButton::SavePrimitive(), and TGToolBar::SavePrimitive().

TGToolTip& TGToolTip::operator= ( const TGToolTip  )  [private]

virtual void TGToolTip::DrawBorder (  )  [virtual]

Reimplemented from TGFrame.

Bool_t TGToolTip::HandleTimer ( TTimer t  )  [virtual]

Reimplemented from TGWindow.

void TGToolTip::Show ( Int_t  x,
Int_t  y 
)

void TGToolTip::Hide (  ) 

void TGToolTip::Reset (  ) 

void TGToolTip::Reset ( const TVirtualPad parent  ) 

void TGToolTip::SetText ( const char *  new_text  ) 

void TGToolTip::SetPosition ( Int_t  x,
Int_t  y 
)

void TGToolTip::SetDelay ( Long_t  delayms  ) 

const TGString* TGToolTip::GetText (  )  const


Member Data Documentation

TGLabel* TGToolTip::fLabel [private]

Definition at line 40 of file TGToolTip.h.

Referenced by GetText(), HandleTimer(), SetText(), TGToolTip(), and ~TGToolTip().

TGLayoutHints* TGToolTip::fL1 [private]

Definition at line 41 of file TGToolTip.h.

Referenced by TGToolTip(), and ~TGToolTip().

TTimer* TGToolTip::fDelay [private]

Definition at line 42 of file TGToolTip.h.

Referenced by HandleTimer(), Hide(), Reset(), SetDelay(), TGToolTip(), and ~TGToolTip().

const TGFrame* TGToolTip::fWindow [private]

Definition at line 43 of file TGToolTip.h.

Referenced by HandleTimer(), SetPosition(), and TGToolTip().

const TVirtualPad* TGToolTip::fPad [private]

Definition at line 44 of file TGToolTip.h.

Referenced by HandleTimer(), Reset(), and TGToolTip().

const TBox* TGToolTip::fBox [private]

Definition at line 45 of file TGToolTip.h.

Referenced by HandleTimer(), and TGToolTip().

Int_t TGToolTip::fX [private]

Reimplemented from TGFrame.

Definition at line 46 of file TGToolTip.h.

Referenced by HandleTimer(), SetPosition(), and TGToolTip().

Int_t TGToolTip::fY [private]

Reimplemented from TGFrame.

Definition at line 47 of file TGToolTip.h.

Referenced by HandleTimer(), SetPosition(), and TGToolTip().

TGLabel* TGToolTip::fLabel [private]

Definition at line 40 of file TGToolTip.h.

TGLayoutHints* TGToolTip::fL1 [private]

Definition at line 41 of file TGToolTip.h.

TTimer* TGToolTip::fDelay [private]

Definition at line 42 of file TGToolTip.h.

const TGFrame* TGToolTip::fWindow [private]

Definition at line 43 of file TGToolTip.h.

const TVirtualPad* TGToolTip::fPad [private]

Definition at line 44 of file TGToolTip.h.

const TBox* TGToolTip::fBox [private]

Definition at line 45 of file TGToolTip.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:41:09 2011 for ROOT_528-00b_version by  doxygen 1.5.1