FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
PluginWindowMacCA.h
1 /**********************************************************\
2 Original Author: Anson MacKeracher
3 
4 Created: May 5, 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 Anson MacKeracher, Firebreath development team
13 \**********************************************************/
14 
15 #ifndef H_PLUGINWINDOWMACCA
16 #define H_PLUGINWINDOWMACCA
17 
18 #include <QuartzCore/QuartzCore.h>
19 #include "PluginWindowMac.h"
20 
21 namespace FB
22 {
23  class PluginWindowMacCA: public PluginWindowMac
24  {
25  public:
26  PluginWindowMacCA();
27  virtual ~PluginWindowMacCA();
28 
29  NPError SetWindow(NPWindow* window);
30  int16_t GetValue(NPPVariable variable, void *value);
31 
32  DrawingModel getDrawingModel() const { return DrawingModelCoreAnimation; }
33  void* getDrawingPrimitive() const { return m_layer; }
34  WindowRef getWindowRef() const { return NULL; }
35 
36  protected:
37  void* m_layer;
38  void* m_txtlayer;
39  };
40 };
41 #endif // H_PLUGINWINDOWMACCA