Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
16
RenderDeviceDriverIface
::~
RenderDeviceDriverIface
() =
default
;
17
18
bool
RenderDeviceDriverIface
::
SetClip_PathStroke
(
19
const
CFX_Path
& path,
20
const
CFX_Matrix
* pObject2Device,
21
const
CFX_GraphStateData
* pGraphState) {
22
return
false
;
23
}
24
25
void
RenderDeviceDriverIface
::
SetBaseClip
(
const
FX_RECT
& rect) {}
26
27
bool
RenderDeviceDriverIface
::
FillRect
(
const
FX_RECT
& rect,
28
uint32_t fill_color) {
29
return
false
;
30
}
31
32
bool
RenderDeviceDriverIface
::
DrawCosmeticLine
(
const
CFX_PointF
& ptMoveTo,
33
const
CFX_PointF
& ptLineTo,
34
uint32_t color) {
35
return
false
;
36
}
37
38
bool
RenderDeviceDriverIface
::
GetDIBits
(
RetainPtr
<CFX_DIBitmap> bitmap,
39
int
left,
40
int
top)
const
{
41
return
false
;
42
}
43
44
RetainPtr
<
const
CFX_DIBitmap>
RenderDeviceDriverIface
::
GetBackDrop
()
const
{
45
return
RetainPtr<
const
CFX_DIBitmap>();
46
}
47
48
bool
RenderDeviceDriverIface
::
ContinueDIBits
(
CFX_AggImageRenderer
* handle,
49
PauseIndicatorIface
* pPause) {
50
return
false
;
51
}
52
53
bool
RenderDeviceDriverIface
::
DrawDeviceText
(
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
63
int
RenderDeviceDriverIface
::
GetDriverType
()
const
{
64
return
0;
65
}
66
67
#
if
defined
(
PDF_USE_SKIA
)
68
bool
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
75
bool
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
85
void
RenderDeviceDriverIface::SetGroupKnockout(
bool
group_knockout) {}
86
87
void
RenderDeviceDriverIface::SyncInternalBitmaps() {}
88
#
endif
// defined(PDF_USE_SKIA)
89
90
RenderDeviceDriverIface
::
StartResult
::
StartResult
(
91
Result
result,
92
std::unique_ptr<CFX_AggImageRenderer> agg_image_renderer)
93
:
result
(result),
agg_image_renderer
(
std
::
move
(
agg_image_renderer
)) {}
94
95
RenderDeviceDriverIface
::
StartResult
::~
StartResult
() =
default
;
CFX_AggImageRenderer
Definition
cfx_agg_imagerenderer.h:23
CFX_Font
Definition
cfx_font.h:38
CFX_GraphStateData
Definition
cfx_graphstatedata.h:16
CFX_Matrix
Definition
fx_coordinates.h:440
CFX_Path
Definition
cfx_path.h:18
PauseIndicatorIface
Definition
pauseindicator_iface.h:10
RenderDeviceDriverIface
Definition
renderdevicedriver_iface.h:41
RenderDeviceDriverIface::DrawDeviceText
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)
Definition
renderdevicedriver_iface.cpp:53
RenderDeviceDriverIface::SetBaseClip
virtual void SetBaseClip(const FX_RECT &rect)
Definition
renderdevicedriver_iface.cpp:25
RenderDeviceDriverIface::GetDriverType
virtual int GetDriverType() const
Definition
renderdevicedriver_iface.cpp:63
RenderDeviceDriverIface::GetDIBits
virtual bool GetDIBits(RetainPtr< CFX_DIBitmap > bitmap, int left, int top) const
Definition
renderdevicedriver_iface.cpp:38
RenderDeviceDriverIface::DrawCosmeticLine
virtual bool DrawCosmeticLine(const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, uint32_t color)
Definition
renderdevicedriver_iface.cpp:32
RenderDeviceDriverIface::GetBackDrop
virtual RetainPtr< const CFX_DIBitmap > GetBackDrop() const
Definition
renderdevicedriver_iface.cpp:44
RenderDeviceDriverIface::ContinueDIBits
virtual bool ContinueDIBits(CFX_AggImageRenderer *handle, PauseIndicatorIface *pPause)
Definition
renderdevicedriver_iface.cpp:48
RenderDeviceDriverIface::FillRect
virtual bool FillRect(const FX_RECT &rect, uint32_t fill_color)
Definition
renderdevicedriver_iface.cpp:27
RenderDeviceDriverIface::Result
Result
Definition
renderdevicedriver_iface.h:43
RenderDeviceDriverIface::SetClip_PathStroke
virtual bool SetClip_PathStroke(const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState)
Definition
renderdevicedriver_iface.cpp:18
RenderDeviceDriverIface::~RenderDeviceDriverIface
virtual ~RenderDeviceDriverIface()
fxcrt::RetainPtr
Definition
retain_ptr.h:28
CFX_PointF
CFX_PTemplate< float > CFX_PointF
Definition
fx_coordinates.h:51
CFX_TextRenderOptions
Definition
cfx_textrenderoptions.h:8
FX_RECT
Definition
fx_coordinates.h:144
RenderDeviceDriverIface::StartResult
Definition
renderdevicedriver_iface.h:51
RenderDeviceDriverIface::StartResult::result
const Result result
Definition
renderdevicedriver_iface.h:56
RenderDeviceDriverIface::StartResult::~StartResult
~StartResult()
RenderDeviceDriverIface::StartResult::StartResult
StartResult(Result result, std::unique_ptr< CFX_AggImageRenderer > agg_image_renderer)
Definition
renderdevicedriver_iface.cpp:90
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxge
renderdevicedriver_iface.cpp
Generated on
for Qt by
1.18.0