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/include/fxcrt/fx_system.h" | 10 #include "core/include/fxcrt/fx_system.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 public: | 52 public: |
53 void* createGraphics(CFX_DIBitmap* bitmap); | 53 void* createGraphics(CFX_DIBitmap* bitmap); |
54 void destroyGraphics(void* graphics); | 54 void destroyGraphics(void* graphics); |
55 | 55 |
56 void* CreateFont(const uint8_t* pFontData, FX_DWORD dwFontSize); | 56 void* CreateFont(const uint8_t* pFontData, FX_DWORD dwFontSize); |
57 void DestroyFont(void* pFont); | 57 void DestroyFont(void* pFont); |
58 void setGraphicsTextMatrix(void* graphics, CFX_Matrix* matrix); | 58 void setGraphicsTextMatrix(void* graphics, CFX_Matrix* matrix); |
59 FX_BOOL drawGraphicsString(void* graphics, | 59 FX_BOOL drawGraphicsString(void* graphics, |
60 void* font, | 60 void* font, |
61 FX_FLOAT fontSize, | 61 FX_FLOAT fontSize, |
62 FX_WORD* glyphIndices, | 62 uint16_t* glyphIndices, |
63 CGPoint* glyphPositions, | 63 CGPoint* glyphPositions, |
64 int32_t chars, | 64 int32_t chars, |
65 FX_ARGB argb, | 65 FX_ARGB argb, |
66 CFX_Matrix* matrix = NULL); | 66 CFX_Matrix* matrix = NULL); |
67 void saveGraphicsState(void* graphics); | 67 void saveGraphicsState(void* graphics); |
68 void restoreGraphicsState(void* graphics); | 68 void restoreGraphicsState(void* graphics); |
69 }; | 69 }; |
70 class CApplePlatform { | 70 class CApplePlatform { |
71 public: | 71 public: |
72 CApplePlatform() {} | 72 CApplePlatform() {} |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 int _totalSize; | 262 int _totalSize; |
263 }; | 263 }; |
264 | 264 |
265 uint32_t FX_GetHashCode(const FX_CHAR* pStr); | 265 uint32_t FX_GetHashCode(const FX_CHAR* pStr); |
266 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName); | 266 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName); |
267 uint32_t FX_IOSGetFamilyNamesCount(); | 267 uint32_t FX_IOSGetFamilyNamesCount(); |
268 const FX_CHAR* FX_IOSGetFamilyName(uint32_t uIndex); | 268 const FX_CHAR* FX_IOSGetFamilyName(uint32_t uIndex); |
269 #endif | 269 #endif |
270 | 270 |
271 #endif // CORE_FXGE_APPLE_APPLE_INT_H_ | 271 #endif // CORE_FXGE_APPLE_APPLE_INT_H_ |
OLD | NEW |