Logo ROOT   6.14/05
Reference Guide
QuartzLine.h
Go to the documentation of this file.
1 // @(#)root/graf2d:$Id$
2 // Author: Olivier Couet, 23/01/2012
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2011, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_QuartzLine
13 #define ROOT_QuartzLine
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // QuartzLine //
18 // //
19 // Aux. functions to draw line. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include <vector>
24 
25 #include <Cocoa/Cocoa.h>
26 
27 #include "Rtypes.h"
28 
29 #include "TPoint.h"
30 
31 namespace ROOT {
32 namespace Quartz {
33 
34 Bool_t SetLineColor(CGContextRef ctx, Color_t colorIndex);
35 void SetLineStyle(CGContextRef ctx, Int_t lstyle);
36 void SetLineWidth(CGContextRef ctx, Int_t width);
37 
38 void DrawLine(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2);
39 void DrawPolyLine(CGContextRef ctx, Int_t n, TPoint * xy);
40 
41 }
42 }
43 
44 #endif
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
Definition: TGaxis.cxx:2551
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
static const double x2[5]
short Color_t
Definition: RtypesCore.h:79
void DrawPolyLine(CGContextRef ctx, Int_t n, TPoint *xy)
Definition: QuartzLine.mm:135
Definition: TPoint.h:31
void SetLineWidth(CGContextRef ctx, Int_t width)
Definition: QuartzLine.mm:108
XPoint xy[kMAXMK]
Definition: TGX11.cxx:122
Bool_t SetLineColor(CGContextRef ctx, Color_t colorIndex)
Definition: QuartzLine.mm:29
void SetLineStyle(CGContextRef ctx, Int_t lstyle)
Definition: QuartzLine.mm:74
static const double x1[5]
void DrawLine(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Definition: QuartzLine.mm:123
const Int_t n
Definition: legend1.C:16