Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
19namespace ROOT {
20namespace Quartz {
21
22//Scope guard class for CGContextRef.
24public:
26 explicit CGStateGuard(CGContextRef ctx);
28
29private:
31
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).
39public:
40 CGAAStateGuard(CGContextRef ctx, bool enable);
42
43private:
45 bool fEnable;
46
49
50};
51
52}
53}
54
55#endif
CGAAStateGuard & operator=(const CGAAStateGuard &rhs)
CGAAStateGuard(const CGAAStateGuard &rhs)
CGStateGuard & operator=(const CGStateGuard &rhs)
CGStateGuard(const CGStateGuard &rhs)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...