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_FXGE_APPLE_APPLE_INT_H_ | 7 #ifndef CORE_FXGE_APPLE_APPLE_INT_H_ |
8 #define CORE_FXGE_APPLE_APPLE_INT_H_ | 8 #define CORE_FXGE_APPLE_APPLE_INT_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
11 | 11 |
12 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 12 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
13 | 13 |
14 #include "core/fxge/include/cfx_graphstatedata.h" | 14 #include "core/fxge/include/cfx_graphstatedata.h" |
15 #include "core/fxge/include/cfx_pathdata.h" | 15 #include "core/fxge/include/cfx_pathdata.h" |
16 #include "core/fxge/include/cfx_renderdevice.h" | 16 #include "core/fxge/include/cfx_renderdevice.h" |
17 #include "core/fxge/include/fx_dib.h" | 17 #include "core/fxge/include/fx_dib.h" |
18 #include "core/fxge/include/ifx_renderdevicedriver.h" | 18 #include "core/fxge/include/ifx_renderdevicedriver.h" |
19 | 19 |
20 #if _FX_OS_ == _FX_MACOSX_ | 20 #if _FX_OS_ == _FX_MACOSX_ |
21 #include <Carbon/Carbon.h> | 21 #include <Carbon/Carbon.h> |
22 #endif | 22 #endif |
23 | 23 |
| 24 class CFX_FontCache; |
| 25 |
24 class CQuartz2D { | 26 class CQuartz2D { |
25 public: | 27 public: |
26 void* createGraphics(CFX_DIBitmap* bitmap); | 28 void* createGraphics(CFX_DIBitmap* bitmap); |
27 void destroyGraphics(void* graphics); | 29 void destroyGraphics(void* graphics); |
28 | 30 |
29 void* CreateFont(const uint8_t* pFontData, uint32_t dwFontSize); | 31 void* CreateFont(const uint8_t* pFontData, uint32_t dwFontSize); |
30 void DestroyFont(void* pFont); | 32 void DestroyFont(void* pFont); |
31 void setGraphicsTextMatrix(void* graphics, CFX_Matrix* matrix); | 33 void setGraphicsTextMatrix(void* graphics, CFX_Matrix* matrix); |
32 FX_BOOL drawGraphicsString(void* graphics, | 34 FX_BOOL drawGraphicsString(void* graphics, |
33 void* font, | 35 void* font, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 int32_t m_height; | 147 int32_t m_height; |
146 int32_t m_bitsPerPixel; | 148 int32_t m_bitsPerPixel; |
147 int32_t m_deviceClass; | 149 int32_t m_deviceClass; |
148 int32_t m_renderCaps; | 150 int32_t m_renderCaps; |
149 int32_t m_horzSize; | 151 int32_t m_horzSize; |
150 int32_t m_vertSize; | 152 int32_t m_vertSize; |
151 }; | 153 }; |
152 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 154 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
153 | 155 |
154 #endif // CORE_FXGE_APPLE_APPLE_INT_H_ | 156 #endif // CORE_FXGE_APPLE_APPLE_INT_H_ |
OLD | NEW |