17#include <Availability.h>
30#ifdef MAC_OS_X_VERSION_10_11
50 color->GetRGB(
r,
g,
b);
51 a = color->GetAlpha();
58 assert(font != 0 &&
"BBoxForCTRun, parameter 'font' is null");
59 assert(run != 0 &&
"BBoxForCTRun, parameter 'run' is null");
109 throw std::runtime_error(
"TextLine: color space");
134 throw std::runtime_error(
"TexLine: color space is null");
155 throw std::runtime_error(
"TextLine: color space");
229 throw std::runtime_error(
"TextLine: null attribs");
233 throw std::runtime_error(
"TextLine: cstr wrapper");
240 throw std::runtime_error(
"TextLine: attrib string");
253 throw std::runtime_error(
"TextLine: null attribs");
256 throw std::runtime_error(
"TextLine: cstr wrapper");
263 throw std::runtime_error(
"TextLine: attrib string");
269 assert(ctx != 0 &&
"DrawLine, ctx parameter is null");
277 assert(ctx != 0 &&
"DrawLine, ctx parameter is null");
321 typedef std::vector<CGSize>::size_type size_type;
326 assert(ctx != 0 &&
"DrawTextLineNoKerning, ctx parameter is null");
327 assert(font != 0 &&
"DrawTextLineNoKerning, font parameter is null");
328 assert(
text.size() &&
"DrawTextLineNoKerning, text parameter is an empty vector");
332 ::Error(
"DrawTextLineNoKerning",
"Font could not encode all Unicode characters in a text");
344 for (size_type i = 1; i <
glyphs.size(); ++i) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char DrawLine
Option_t Option_t TPoint TPoint const char text
void GetBounds(UInt_t &w, UInt_t &h) const
void GetAscentDescent(Int_t &asc, Int_t &desc) const
void Init(const char *textLine, UInt_t nAttribs, CFStringRef *keys, CFTypeRef *values)
TextLine(const char *textLine, CTFontRef font)
void DrawLine(CGContextRef ctx) const
The color creation and management class.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
const CTFontOrientation defaultFontOrientation
void DrawTextLineNoKerning(CGContextRef ctx, CTFontRef font, const std::vector< UniChar > &text, Int_t x, Int_t y)
const CTFontOrientation horizontalFontOrientation
const CTFontOrientation verticalFontOrientation
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Double_t Floor(Double_t x)
Rounds x downward, returning the largest integral value that is not greater than x.
Double_t Ceil(Double_t x)
Rounds x upward, returning the smallest integral value that is not less than x.
constexpr Double_t DegToRad()
Conversion from degree to radian: .
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.