// @(#)root/graf:$Id$ // Author: Nicolas Brun 12/12/94 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TText #define ROOT_TText #include "TAttText.h" #include "TNamed.h" #include "TAttBBox2D.h" class TPoint; class TText : public TNamed, public TAttText, public TAttBBox2D { protected: Double_t fX{0}; ///< X position of text (left,center,etc..) Double_t fY{0}; ///< Y position of text (left,center,etc..) void *fWcsTitle{nullptr}; ///fX,y=>fY,text=>fTitle} virtual void SetText(Double_t x, Double_t y, const wchar_t *text) {fX=x; fY=y; SetMbTitle(text);} virtual void SetX(Double_t x) { fX = x; } // *MENU* virtual void SetY(Double_t y) { fY = y; } // *MENU* Rectangle_t GetBBox() override; TPoint GetBBoxCenter() override; void SetBBoxCenter(const TPoint &p) override; void SetBBoxCenterX(const Int_t x) override; void SetBBoxCenterY(const Int_t y) override; void SetBBoxX1(const Int_t) override; //Not Implemented void SetBBoxX2(const Int_t) override; //Not Implemented void SetBBoxY1(const Int_t) override; //Not Implemented void SetBBoxY2(const Int_t) override; //Not Implemented ClassDefOverride(TText,3) //Text }; #endif