Warning, file /include/root/TGToolTip.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGToolTip
0013 #define ROOT_TGToolTip
0014
0015
0016 #include "TGFrame.h"
0017
0018 class TGLabel;
0019 class TTimer;
0020 class TVirtualPad;
0021 class TBox;
0022
0023
0024 class TGToolTip : public TGCompositeFrame {
0025
0026 private:
0027 TGLabel *fLabel;
0028 TGLayoutHints *fL1;
0029 TTimer *fDelay;
0030 const TGFrame *fWindow;
0031 const TVirtualPad *fPad;
0032 const TBox *fBox;
0033 Int_t fX;
0034 Int_t fY;
0035
0036 TGToolTip(const TGToolTip&) = delete;
0037 TGToolTip& operator=(const TGToolTip&) = delete;
0038
0039 public:
0040 TGToolTip(const TGWindow *p = nullptr, const TGFrame *f = nullptr, const char *text = nullptr, Long_t delayms = 350);
0041 TGToolTip(const TGWindow *p, const TBox *b, const char *text, Long_t delayms);
0042 TGToolTip(const TBox *b, const char *text, Long_t delayms);
0043 TGToolTip(Int_t x, Int_t y, const char *text, Long_t delayms);
0044 ~TGToolTip() override;
0045
0046 void DrawBorder() override;
0047
0048 Bool_t HandleTimer(TTimer *t) override;
0049 void Show(Int_t x, Int_t y);
0050 void Hide();
0051 void Reset();
0052 void Reset(const TVirtualPad *parent);
0053 void SetText(const char *new_text);
0054 void SetPosition(Int_t x, Int_t y);
0055 void SetDelay(Long_t delayms);
0056 const TGString *GetText() const;
0057
0058 ClassDefOverride(TGToolTip,0)
0059 };
0060
0061 #endif