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
cpdf_scaledrenderbuffer.h
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
#
ifndef
CORE_FPDFAPI_RENDER_CPDF_SCALEDRENDERBUFFER_H_
8
#
define
CORE_FPDFAPI_RENDER_CPDF_SCALEDRENDERBUFFER_H_
9
10
#
include
<
memory
>
11
12
#
include
"core/fxcrt/fx_coordinates.h"
13
#
include
"core/fxcrt/unowned_ptr.h"
14
15
class
CFX_DefaultRenderDevice;
16
class
CFX_RenderDevice
;
17
class
CPDF_PageObject
;
18
class
CPDF_RenderContext
;
19
class
CPDF_RenderOptions
;
20
21
class
CPDF_ScaledRenderBuffer
{
22
public
:
23
CPDF_ScaledRenderBuffer
(
CFX_RenderDevice
* device,
const
FX_RECT
& rect);
24
~
CPDF_ScaledRenderBuffer
();
25
26
bool
Initialize
(
CPDF_RenderContext
* pContext,
27
const
CPDF_PageObject
* pObj,
28
const
CPDF_RenderOptions
& options,
29
int
max_dpi);
30
31
CFX_DefaultRenderDevice*
GetDevice
();
32
const
CFX_Matrix
&
GetMatrix
()
const
{
return
matrix_; }
33
void
OutputToDevice
();
34
35
private
:
36
UnownedPtr
<
CFX_RenderDevice
>
const
device_;
37
std::unique_ptr<CFX_DefaultRenderDevice>
const
bitmap_device_;
38
const
FX_RECT
rect_;
39
CFX_Matrix
matrix_;
40
};
41
42
#
endif
// CORE_FPDFAPI_RENDER_CPDF_SCALEDRENDERBUFFER_H_
CFX_FloatRect
Definition
fx_coordinates.h:185
CFX_FloatRect::CFX_FloatRect
CFX_FloatRect(const FX_RECT &rect)
Definition
fx_coordinates.cpp:130
CFX_FloatRect::GetOuterRect
FX_RECT GetOuterRect() const
Definition
fx_coordinates.cpp:183
CFX_Matrix
Definition
fx_coordinates.h:440
CFX_Matrix::TransformRect
CFX_FloatRect TransformRect(const CFX_FloatRect &rect) const
Definition
fx_coordinates.cpp:475
CFX_Matrix::Scale
void Scale(float sx, float sy)
Definition
fx_coordinates.cpp:406
CFX_RenderDevice
Definition
cfx_renderdevice.h:39
CPDF_DeviceBuffer
Definition
cpdf_devicebuffer.h:20
CPDF_DeviceBuffer::CalculateMatrix
static CFX_Matrix CalculateMatrix(CFX_RenderDevice *pDevice, const FX_RECT &rect, int max_dpi, bool scale)
Definition
cpdf_devicebuffer.cpp:37
CPDF_PageObject
Definition
cpdf_pageobject.h:27
CPDF_RenderContext
Definition
cpdf_rendercontext.h:27
CPDF_RenderContext::GetBackgroundToDevice
void GetBackgroundToDevice(CFX_RenderDevice *device, const CPDF_PageObject *object, const CPDF_RenderOptions *options, const CFX_Matrix &matrix)
Definition
cpdf_rendercontext.cpp:37
CPDF_RenderOptions
Definition
cpdf_renderoptions.h:19
CPDF_ScaledRenderBuffer
Definition
cpdf_scaledrenderbuffer.h:21
CPDF_ScaledRenderBuffer::~CPDF_ScaledRenderBuffer
~CPDF_ScaledRenderBuffer()
CPDF_ScaledRenderBuffer::OutputToDevice
void OutputToDevice()
Definition
cpdf_scaledrenderbuffer.cpp:66
CPDF_ScaledRenderBuffer::CPDF_ScaledRenderBuffer
CPDF_ScaledRenderBuffer(CFX_RenderDevice *device, const FX_RECT &rect)
Definition
cpdf_scaledrenderbuffer.cpp:22
CPDF_ScaledRenderBuffer::GetDevice
CFX_DefaultRenderDevice * GetDevice()
Definition
cpdf_scaledrenderbuffer.cpp:62
CPDF_ScaledRenderBuffer::Initialize
bool Initialize(CPDF_RenderContext *pContext, const CPDF_PageObject *pObj, const CPDF_RenderOptions &options, int max_dpi)
Definition
cpdf_scaledrenderbuffer.cpp:30
CPDF_ScaledRenderBuffer::GetMatrix
const CFX_Matrix & GetMatrix() const
Definition
cpdf_scaledrenderbuffer.h:32
fxcrt::UnownedPtr
Definition
unowned_ptr.h:76
FXDIB_Format
FXDIB_Format
Definition
fx_dib.h:21
FXDIB_Format::kBgr
@ kBgr
Definition
fx_dib.h:25
FXDIB_Format::kBgra
@ kBgra
Definition
fx_dib.h:29
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
FXDC_RENDER_CAPS
#define FXDC_RENDER_CAPS
Definition
render_defines.h:15
FXRC_ALPHA_OUTPUT
#define FXRC_ALPHA_OUTPUT
Definition
render_defines.h:20
CFX_DIBitmap::PitchAndSize
Definition
cfx_dibitmap.h:26
FX_RECT
Definition
fx_coordinates.h:144
FX_RECT::Height
int Height() const
Definition
fx_coordinates.h:152
FX_RECT::Width
int Width() const
Definition
fx_coordinates.h:151
FX_RECT::FX_RECT
FX_RECT(const FX_RECT &that)=default
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfapi
render
cpdf_scaledrenderbuffer.h
Generated on
for Qt by
1.16.1