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 "core/fxcrt/fx_coordinates.h"
10#include "core/fxge/cfx_path.h"
11#include "core/fxge/dib/cfx_dibitmap.h"
12
14
16 const CFX_Path& path,
17 const CFX_Matrix* pObject2Device,
18 const CFX_GraphStateData* pGraphState) {
19 return false;
20}
21
23
25 uint32_t fill_color,
26 BlendMode blend_type) {
27 return false;
28}
29
30bool RenderDeviceDriverIface::DrawCosmeticLine(const CFX_PointF& ptMoveTo,
31 const CFX_PointF& ptLineTo,
32 uint32_t color,
33 BlendMode blend_type) {
34 return false;
35}
36
37bool RenderDeviceDriverIface::GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
38 int left,
39 int top) {
40 return false;
41}
42
44 return RetainPtr<CFX_DIBitmap>();
45}
46
48 PauseIndicatorIface* pPause) {
49 return false;
50}
51
53 pdfium::span<const TextCharPos> pCharPos,
54 CFX_Font* pFont,
55 const CFX_Matrix& mtObject2Device,
56 float font_size,
57 uint32_t color,
58 const CFX_TextRenderOptions& options) {
59 return false;
60}
61
63 return 0;
64}
65
66bool RenderDeviceDriverIface::DrawShading(const CPDF_ShadingPattern* pPattern,
67 const CFX_Matrix* pMatrix,
68 const FX_RECT& clip_rect,
69 int alpha,
70 bool bAlphaMode) {
71 return false;
72}
73
74#if defined(PDF_USE_SKIA)
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
87bool RenderDeviceDriverIface::SyncInternalBitmaps() {
88 return true;
89}
90#endif
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 bool GetDIBits(const RetainPtr< CFX_DIBitmap > &pBitmap, int left, int top)
virtual void SetBaseClip(const FX_RECT &rect)
virtual RetainPtr< CFX_DIBitmap > GetBackDrop()
virtual bool DrawShading(const CPDF_ShadingPattern *pPattern, const CFX_Matrix *pMatrix, const FX_RECT &clip_rect, int alpha, bool bAlphaMode)
virtual bool DrawCosmeticLine(const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, uint32_t color, BlendMode blend_type)
virtual bool FillRectWithBlend(const FX_RECT &rect, uint32_t fill_color, BlendMode blend_type)
virtual bool SetClip_PathStroke(const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState)
virtual ~RenderDeviceDriverIface()
virtual bool ContinueDIBits(CFX_ImageRenderer *handle, PauseIndicatorIface *pPause)
BlendMode
Definition fx_dib.h:49