blob: 5847a48b8a9b690f571ca65a09f890849650b981 [file] [log] [blame]
// 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.
#include <Carbon/Carbon.h>
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/retain_ptr.h"
#include "core/fxge/cfx_gemodule.h"
#include "core/fxge/dib/fx_dib.h"
class CFX_DIBitmap;
class CFX_Matrix;
class CQuartz2D {
void* CreateGraphics(const RetainPtr<CFX_DIBitmap>& 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);