Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fx_quartz_device.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FXGE_APPLE_FX_QUARTZ_DEVICE_H_
8#define CORE_FXGE_APPLE_FX_QUARTZ_DEVICE_H_
9
10#include <CoreGraphics/CoreGraphics.h>
11#include <stdint.h>
12
13#include "core/fxcrt/retain_ptr.h"
14#include "core/fxge/dib/fx_dib.h"
15#include "third_party/base/containers/span.h"
16
17class CFX_DIBitmap;
18class CFX_Matrix;
19
20class CQuartz2D {
21 public:
22 void* CreateGraphics(const RetainPtr<CFX_DIBitmap>& bitmap);
23 void DestroyGraphics(void* graphics);
24
25 void* CreateFont(pdfium::span<const uint8_t> pFontData);
26 void DestroyFont(void* pFont);
27 void SetGraphicsTextMatrix(void* graphics, const CFX_Matrix& matrix);
28 bool DrawGraphicsString(void* graphics,
29 void* font,
30 float fontSize,
31 pdfium::span<uint16_t> glyphIndices,
32 pdfium::span<CGPoint> glyphPositions,
33 FX_ARGB argb);
34};
35
36#endif // CORE_FXGE_APPLE_FX_QUARTZ_DEVICE_H_
void Init() override
std::unique_ptr< SystemFontInfoIface > CreateDefaultSystemFontInfo() override
void * CreatePlatformFont(pdfium::span< const uint8_t > font_span) override
~CApplePlatform() override
ByteString GetPsName() const
Definition cfx_font.cpp:358
CFX_SubstFont * GetSubstFont() const
Definition cfx_font.h:82
bool IsBold() const
Definition cfx_font.cpp:343
PlatformIface * GetPlatform() const
static CFX_GEModule * Get()
void SetGraphicsTextMatrix(void *graphics, const CFX_Matrix &matrix)
void DestroyFont(void *pFont)
void DestroyGraphics(void *graphics)
void * CreateGraphics(const RetainPtr< CFX_DIBitmap > &bitmap)
bool DrawGraphicsString(void *graphics, void *font, float fontSize, pdfium::span< uint16_t > glyphIndices, pdfium::span< CGPoint > glyphPositions, FX_ARGB argb)
void * CreateFont(pdfium::span< const uint8_t > pFontData)
bool operator==(const char *ptr) const
bool DrawDeviceText(pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, const CFX_Matrix &mtObject2Device, float font_size, uint32_t color, const CFX_TextRenderOptions &options) override