OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_INCLUDE_FXGE_FX_GE_APPLE_H_ | 7 #ifndef CORE_FXGE_INCLUDE_FX_GE_APPLE_H_ |
8 #define CORE_INCLUDE_FXGE_FX_GE_APPLE_H_ | 8 #define CORE_FXGE_INCLUDE_FX_GE_APPLE_H_ |
9 | 9 |
10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
11 class CFX_QuartzDevice : public CFX_RenderDevice { | 11 class CFX_QuartzDevice : public CFX_RenderDevice { |
12 public: | 12 public: |
13 CFX_QuartzDevice(); | 13 CFX_QuartzDevice(); |
14 ~CFX_QuartzDevice(); | 14 ~CFX_QuartzDevice(); |
15 FX_BOOL Attach(CGContextRef context, int32_t nDeviceClass = FXDC_DISPLAY); | 15 FX_BOOL Attach(CGContextRef context, int32_t nDeviceClass = FXDC_DISPLAY); |
16 FX_BOOL Attach(CFX_DIBitmap* pBitmap); | 16 FX_BOOL Attach(CFX_DIBitmap* pBitmap); |
17 FX_BOOL Create(int32_t width, int32_t height, FXDIB_Format format); | 17 FX_BOOL Create(int32_t width, int32_t height, FXDIB_Format format); |
18 | 18 |
19 CGContextRef GetContext(); | 19 CGContextRef GetContext(); |
20 | 20 |
21 protected: | 21 protected: |
22 CGContextRef m_pContext; | 22 CGContextRef m_pContext; |
23 FX_BOOL m_bOwnedBitmap; | 23 FX_BOOL m_bOwnedBitmap; |
24 }; | 24 }; |
25 #endif | 25 #endif |
26 | 26 |
27 #endif // CORE_INCLUDE_FXGE_FX_GE_APPLE_H_ | 27 #endif // CORE_FXGE_INCLUDE_FX_GE_APPLE_H_ |
OLD | NEW |