// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef CORE_FXGE_APPLE_APPLE_INT_H_ #define CORE_FXGE_APPLE_APPLE_INT_H_ #include "core/fxcrt/fx_system.h" #include #include "core/fxge/cfx_gemodule.h" #include "core/fxge/cfx_graphstatedata.h" #include "core/fxge/cfx_pathdata.h" #include "core/fxge/fx_dib.h" #include "core/fxge/renderdevicedriver_iface.h" class CQuartz2D { public: void* CreateGraphics(const RetainPtr& bitmap); void DestroyGraphics(void* graphics); void* CreateFont(const uint8_t* pFontData, uint32_t dwFontSize); void DestroyFont(void* pFont); void SetGraphicsTextMatrix(void* graphics, const CFX_Matrix& matrix); bool DrawGraphicsString(void* graphics, void* font, float fontSize, uint16_t* glyphIndices, CGPoint* glyphPositions, int32_t chars, FX_ARGB argb); }; class CApplePlatform : public CFX_GEModule::PlatformIface { public: CApplePlatform(); ~CApplePlatform() override; // CFX_GEModule::PlatformIface: void Init() override; CQuartz2D m_quartz2d; }; #endif // CORE_FXGE_APPLE_APPLE_INT_H_