Loading [MathJax]/extensions/tex2jax.js
ROOT
6.10/09
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
<
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
graf2d
quartz
inc
QuartzUtils.h
Go to the documentation of this file.
1
// @(#)root/graf2d:$Id$
2
// Author: Timur Pocheptsov, 11/06/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_QuartzUtils
13
#define ROOT_QuartzUtils
14
15
#include <ApplicationServices/ApplicationServices.h>
16
17
#include "
CocoaUtils.h
"
18
19
namespace
ROOT
{
20
namespace
Quartz
{
21
22
//Scope guard class for CGContextRef.
23
class
CGStateGuard
{
24
public
:
25
explicit
CGStateGuard
(
MacOSX::Util::CFScopeGuard<CGContextRef>
&ctx);
26
explicit
CGStateGuard
(CGContextRef ctx);
27
~CGStateGuard
();
28
29
private
:
30
CGContextRef
fCtx
;
31
32
CGStateGuard
(
const
CGStateGuard
&rhs);
33
CGStateGuard
&
operator =
(
const
CGStateGuard
&rhs);
34
};
35
36
//Scope guard for AA flag (due to some reason it's not
37
//saved/restored as a part of a context state).
38
class
CGAAStateGuard
{
39
public
:
40
CGAAStateGuard
(CGContextRef ctx,
bool
enable);
41
~
CGAAStateGuard
();
42
43
private
:
44
CGContextRef
fCtx
;
45
bool
fEnable
;
46
47
CGAAStateGuard
(
const
CGAAStateGuard
&rhs);
48
CGAAStateGuard
&
operator =
(
const
CGAAStateGuard
&rhs);
49
50
};
51
52
}
53
}
54
55
#endif
ROOT
Namespace for new ROOT classes and functions.
Definition:
StringConv.hxx:21
ROOT::Quartz::CGStateGuard::CGStateGuard
CGStateGuard(MacOSX::Util::CFScopeGuard< CGContextRef > &ctx)
Definition:
QuartzUtils.mm:20
ROOT::MacOSX::Util::CFScopeGuard< CGContextRef >
ROOT::Quartz::CGStateGuard::fCtx
CGContextRef fCtx
Definition:
QuartzUtils.h:30
ROOT::Quartz::CGStateGuard
Definition:
QuartzUtils.h:23
ROOT::Quartz::CGStateGuard::~CGStateGuard
~CGStateGuard()
Definition:
QuartzUtils.mm:36
ROOT::Quartz::CGAAStateGuard::fCtx
CGContextRef fCtx
Definition:
QuartzUtils.h:44
CocoaUtils.h
ROOT::Quartz::CGAAStateGuard
Definition:
QuartzUtils.h:38
ROOT::Quartz::CGAAStateGuard::fEnable
bool fEnable
Definition:
QuartzUtils.h:45
ROOT::Quartz::CGStateGuard::operator=
CGStateGuard & operator=(const CGStateGuard &rhs)
ROOT::Quartz
Definition:
QuartzFillArea.h:35