FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
MacEventCocoa.h
1 /**********************************************************\
2 Original Author: Georg Fritzsche
3 
4 Created: Mar 26, 2010
5 License: Dual license model; choose one of two:
6  New BSD License
7  http://www.opensource.org/licenses/bsd-license.php
8  - or -
9  GNU Lesser General Public License, version 2.1
10  http://www.gnu.org/licenses/lgpl-2.1.html
11 
12 Copyright 2010 Firebreath development team
13 \**********************************************************/
14 
15 #pragma once
16 #ifndef H_FB_EVENTS_MACEVENTCOCOA
17 #define H_FB_EVENTS_MACEVENTCOCOA
18 
19 #ifndef XP_MACOSX
20 #define NPCocoaEvent void*
21 #define CGContextRef void*
22 #else
23 #include <boost/type_traits.hpp>
24 #include "npapi.h"
25 #endif
26 
27 #include "PluginEvent.h"
28 #include "DrawingEvents.h"
29 
30 namespace FB {
31 
37  class MacEventCocoa : public PluginEvent
38  {
39  public:
40  MacEventCocoa(NPCocoaEvent* src)
41  {
42  std::memcpy(&msg, src, sizeof(NPCocoaEvent));
43  }
44 
45  public:
46  NPCocoaEvent msg;
47  };
48 
49 };
50 
51 #endif
52 
Cocoa mac event.
Definition: MacEventCocoa.h:37
Plugin event base class.
Definition: PluginEvent.h:36