Logo ROOT  
Reference Guide
TMacOSXSystem.h
Go to the documentation of this file.
1// @(#)root/graf2d:$Id$
2// Author: Timur Pocheptsov 5/12/2011
3
4/*************************************************************************
5 * Copyright (C) 1995-2012, 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
13#ifndef ROOT_TMacOSXSystem
14#define ROOT_TMacOSXSystem
15
16#include "TUnixSystem.h"
17
18#include <memory>
19
20////////////////////////////////////////////////////////////////////
21// //
22// Event loop with MacOS X and Cocoa is different //
23// from TUnixSystem. The difference is mainly //
24// in DispatchOneEvent, AddFileHandler and RemoveFileHandler. //
25// //
26////////////////////////////////////////////////////////////////////
27
28namespace ROOT {
29namespace MacOSX {
30namespace Details {
31
32//'Private' pimpl class to hide Apple's specific things from CINT.
33class MacOSXSystem;
34
35}
36}
37}
38
39class TMacOSXSystem : public TUnixSystem {
40 friend class TGCocoa;
41public:
44
45 void DispatchOneEvent(Bool_t pendingOnly);
46 bool CocoaInitialized() const;
47
48private:
49 void InitializeCocoa();
50
52 void WaitEvents(Long_t nextto);
53
56
57 void ProcessApplicationDefinedEvent(void *event);
58
59 std::unique_ptr<ROOT::MacOSX::Details::MacOSXSystem> fPimpl; //!
62
65
66 ClassDef(TMacOSXSystem, 0);//TSystem for Mac OSX.
67};
68
69#endif
long Long_t
Definition: RtypesCore.h:52
#define ClassDef(name, id)
Definition: Rtypes.h:322
This class implements TVirtualX interface for MacOS X, using Cocoa and Quartz 2D.
Definition: TGCocoa.h:58
bool ProcessPendingEvents()
void AddFileHandler(TFileHandler *fh)
Add a file handler to the list of system file handlers.
void InitializeCocoa()
bool fCocoaInitialized
Definition: TMacOSXSystem.h:60
void WaitEvents(Long_t nextto)
bool CocoaInitialized() const
void DispatchOneEvent(Bool_t pendingOnly)
Dispatch a single event.
TFileHandler * RemoveFileHandler(TFileHandler *fh)
Remove a file handler from the list of file handlers.
void ProcessApplicationDefinedEvent(void *event)
TMacOSXSystem(const TMacOSXSystem &rhs)
TMacOSXSystem & operator=(const TMacOSXSystem &rhs)
std::unique_ptr< ROOT::MacOSX::Details::MacOSXSystem > fPimpl
Definition: TMacOSXSystem.h:59
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: StringConv.hxx:21