72 virtual void SetMbTitle(
const wchar_t *title=L
"");
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint angle
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint DrawText
Option_t Option_t TPoint TPoint const char text
Abstract base class for elements drawn in the editor.
The TNamed class is the base class for all named ROOT classes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Mother of all ROOT objects.
Base class for several text objects.
@ kTextNDC
The text position is in the NDC space.
virtual void SetText(Double_t x, Double_t y, const char *text)
Double_t fY
Y position of text (left,center,etc..)
const void * GetWcsTitle(void) const
Returns the text as UNICODE.
void SetBBoxCenter(const TPoint &p) override
Set the point given by Alignment as 'center'.
Rectangle_t GetBBox() override
Return the "bounding Box" of the Box.
void Copy(TObject &text) const override
Copy this text to text.
TText & operator=(const TText &src)
Assignment operator.
virtual void SetText(Double_t x, Double_t y, const wchar_t *text)
virtual ~TText()
Text default destructor.
virtual void GetBoundingBox(UInt_t &w, UInt_t &h, Bool_t angle=kFALSE)
Return text size in pixels.
virtual void SetY(Double_t y)
virtual void PaintControlBox(Int_t x, Int_t y, Double_t theta)
Paint the text control box.
void * fWcsTitle
!Used by TMathText
Double_t fX
X position of text (left,center,etc..)
virtual void PaintTextNDC(Double_t u, Double_t v, const char *text)
Draw this text with new coordinates in NDC.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
void ls(Option_t *option="") const override
List this text with its attributes.
virtual void PaintText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
void SetBBoxY2(const Int_t) override
Set bottom of BoundingBox to a value (resize in y direction on bottom)
virtual void GetTextExtent(UInt_t &w, UInt_t &h, const char *text) const
Return text extent for string text.
virtual void GetTextAscentDescent(UInt_t &a, UInt_t &d, const char *text) const
Return text ascent and descent for string text.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a string.
TPoint GetBBoxCenter() override
Return the point given by Alignment as 'center'.
virtual void SetX(Double_t x)
virtual void GetTextAdvance(UInt_t &a, const char *text, const Bool_t kern=kTRUE) const
Return text advance for string text if kern is true (default) kerning is taken into account.
void Paint(Option_t *option="") override
Paint this text with its current attributes.
void SetBBoxCenterY(const Int_t y) override
Set Y coordinate of the point given by Alignment as 'center'.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
void Print(Option_t *option="") const override
Dump this text with its attributes.
void SetBBoxY1(const Int_t) override
Set top of BoundingBox to a value (resize in y direction on top)
virtual void GetControlBox(Int_t x, Int_t y, Double_t theta, Int_t cBoxX[4], Int_t cBoxY[4])
Return the text control box.
void SetBBoxX2(const Int_t) override
Set right hand side of BoundingBox to a value (resize in x direction on right)
void SetBBoxCenterX(const Int_t x) override
Set X coordinate of the point given by Alignment as 'center'.
void SetBBoxX1(const Int_t) override
Set left hand side of BoundingBox to a value (resize in x direction on left)
virtual TText * DrawTextNDC(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates in NDC.
virtual void SetMbTitle(const wchar_t *title=L"")
Change (i.e. set) the title of the TNamed.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
Rectangle structure (maps to the X11 XRectangle structure)