338 auto pp =
pad ?
pad->GetPainter() :
nullptr;
345 if (pp->IsNative()) {
347 auto wh =
pad->XtoPixel(
pad->GetX2());
348 auto hh =
pad->YtoPixel(
pad->GetY1());
368 pp->SetTextSize(
tsize);
369 }
else if (pp->GetTextSize() !=
tsize) {
370 pp->SetTextSize(
tsize);
401 out <<
" " <<
name <<
"->SetTextFont(" <<
fTextFont <<
");\n";
403 out <<
" " <<
name <<
"->SetTextSize(" <<
fTextSize <<
");\n";
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
short Style_t
Style number (short)
int Int_t
Signed integer 4 bytes (int)
short Color_t
Color number (short)
float Float_t
Float 4 bytes (float)
const char Option_t
Option string (const char)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint angle
R__EXTERN TStyle * gStyle
virtual Float_t GetTextSize() const
Return the text size.
virtual void Modify()
Change current text attributes if necessary.
virtual void ModifyOn(TVirtualPad *pad)
Change current text attributes if necessary on specified pad.
virtual Short_t GetTextAlign() const
Return the text alignment.
virtual Font_t GetTextFont() const
Return the text font.
Color_t fTextColor
Text color.
Float_t fTextAngle
Text angle.
TAttText()
AttText default constructor.
virtual void SetTextColorAlpha(Color_t tcolor, Float_t talpha)
Set a transparent text color.
virtual Color_t GetTextColor() const
Return the text color.
virtual ~TAttText()
AttText destructor.
virtual Float_t GetTextAngle() const
Return the text angle.
virtual void SetTextAttributes()
Invoke the DialogCanvas Text attributes.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextSizePixels(Int_t npixels)
Set the text size in pixel.
Font_t fTextFont
Text font.
virtual void SaveTextAttributes(std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
Save text attributes as C++ statement(s) on output stream out.
virtual Float_t GetTextSizePercent(Float_t size)
Return the text in percent of the pad size.
Short_t fTextAlign
Text alignment.
void Copy(TAttText &atttext) const
Copy this text attributes to a new TAttText.
virtual void ResetAttText(Option_t *toption="")
Reset this text attributes to default values.
Float_t fTextSize
Text size.
static TString SavePrimitiveColor(Int_t ci)
Convert color in C++ statement which can be used in SetColor directives Produced statement either inc...
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
static void UpdateTextAttributes(Int_t align, Float_t angle, Int_t col, Int_t font, Float_t tsize)
Update text attributes via the pad editor.
TVirtualPad is an abstract base class for the Pad and Canvas classes.