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
renderdevicedriver_iface.cpp
Go to the documentation of this file.
1// Copyright 2016 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#include "core/fxge/renderdevicedriver_iface.h"
8
9#include <utility>
10
11#include "core/fxcrt/fx_coordinates.h"
12#include "core/fxge/agg/cfx_agg_imagerenderer.h"
13#include "core/fxge/cfx_path.h"
14#include "core/fxge/dib/cfx_dibitmap.h"
15
17
19 const CFX_Path& path,
20 const CFX_Matrix* pObject2Device,
21 const CFX_GraphStateData* pGraphState) {
22 return false;
23}
24
26
28 uint32_t fill_color) {
29 return false;
30}
31
33 const CFX_PointF& ptLineTo,
34 uint32_t color) {
35 return false;
36}
37
38bool RenderDeviceDriverIface::GetDIBits(RetainPtr<CFX_DIBitmap> bitmap,
39 int left,
40 int top) const {
41 return false;
42}
43
44RetainPtr<const CFX_DIBitmap> RenderDeviceDriverIface::GetBackDrop() const {
45 return RetainPtr<const CFX_DIBitmap>();
46}
47
49 PauseIndicatorIface* pPause) {
50 return false;
51}
52
54 pdfium::span<const TextCharPos> pCharPos,
55 CFX_Font* pFont,
56 const CFX_Matrix& mtObject2Device,
57 float font_size,
58 uint32_t color,
59 const CFX_TextRenderOptions& options) {
60 return false;
61}
62
64 return 0;
65}
66
67#if defined(PDF_USE_SKIA)
68bool RenderDeviceDriverIface::DrawShading(const CPDF_ShadingPattern& pattern,
69 const CFX_Matrix& matrix,
70 const FX_RECT& clip_rect,
71 int alpha) {
72 return false;
73}
74
75bool RenderDeviceDriverIface::SetBitsWithMask(
76 RetainPtr<const CFX_DIBBase> bitmap,
77 RetainPtr<const CFX_DIBBase> mask,
78 int left,
79 int top,
80 float alpha,
81 BlendMode blend_type) {
82 return false;
83}
84
85void RenderDeviceDriverIface::SetGroupKnockout(bool group_knockout) {}
86
87void RenderDeviceDriverIface::SyncInternalBitmaps() {}
88#endif // defined(PDF_USE_SKIA)
89
91 Result result,
92 std::unique_ptr<CFX_AggImageRenderer> agg_image_renderer)
94
virtual bool DrawDeviceText(pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, const CFX_Matrix &mtObject2Device, float font_size, uint32_t color, const CFX_TextRenderOptions &options)
virtual void SetBaseClip(const FX_RECT &rect)
virtual bool GetDIBits(RetainPtr< CFX_DIBitmap > bitmap, int left, int top) const
virtual bool DrawCosmeticLine(const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, uint32_t color)
virtual RetainPtr< const CFX_DIBitmap > GetBackDrop() const
virtual bool ContinueDIBits(CFX_AggImageRenderer *handle, PauseIndicatorIface *pPause)
virtual bool FillRect(const FX_RECT &rect, uint32_t fill_color)
virtual bool SetClip_PathStroke(const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState)
virtual ~RenderDeviceDriverIface()
CFX_PTemplate< float > CFX_PointF
StartResult(Result result, std::unique_ptr< CFX_AggImageRenderer > agg_image_renderer)