12 #ifndef ROOT_QuartzText
13 #define ROOT_QuartzText
17 #include <Cocoa/Cocoa.h>
39 TextLine(
const char *textLine, CTFontRef font);
40 TextLine(
const std::vector<UniChar> &textLine, CTFontRef font);
42 TextLine(
const char *textLine, CTFontRef font, Color_t color);
43 TextLine(
const std::vector<UniChar> &textLine, CTFontRef font, Color_t color);
44 TextLine(
const char *textLine, CTFontRef font,
const CGFloat *rgb);
48 void GetBounds(UInt_t &w, UInt_t &h)
const;
49 void GetAscentDescent(Int_t &asc, Int_t &desc)
const;
51 void DrawLine(CGContextRef ctx)
const;
52 void DrawLine(CGContextRef ctx, Double_t x, Double_t y)
const;
57 void Init(
const char *textLine, UInt_t nAttribs, CFStringRef *keys, CFTypeRef *values);
58 void Init(
const std::vector<UniChar> &textLine, UInt_t nAttribs, CFStringRef *keys, CFTypeRef *values);
60 TextLine(
const TextLine &rhs);
61 TextLine &operator = (
const TextLine &rhs);
65 void DrawTextLineNoKerning(CGContextRef ctx, CTFontRef font,
const std::vector<UniChar> &text, Int_t x, Int_t y);
67 const extern CTFontOrientation defaultFontOrientation;
68 const extern CTFontOrientation horizontalFontOrientation;
69 const extern CTFontOrientation verticalFontOrientation;