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
cgdi_display_driver.h
Go to the documentation of this file.
1
// Copyright 2020 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_WIN32_CGDI_DISPLAY_DRIVER_H_
8
#
define
CORE_FXGE_WIN32_CGDI_DISPLAY_DRIVER_H_
9
10
#
include
<
stdint
.
h
>
11
#
include
<
windows
.
h
>
12
13
#
include
<
memory
>
14
15
#
include
"core/fxcrt/retain_ptr.h"
16
#
include
"core/fxge/win32/cgdi_device_driver.h"
17
18
class
CFX_DIBBase
;
19
struct
FXDIB_ResampleOptions
;
20
struct
FX_RECT
;
21
22
class
CGdiDisplayDriver
final
:
public
CGdiDeviceDriver
{
23
public
:
24
explicit
CGdiDisplayDriver
(HDC hDC);
25
~
CGdiDisplayDriver
()
override
;
26
27
private
:
28
// CGdiDisplayDriver:
29
int
GetDeviceCaps
(
int
caps_id)
const
override
;
30
bool
GetDIBits
(
RetainPtr
<CFX_DIBitmap> bitmap,
31
int
left,
32
int
top)
const
override
;
33
bool
SetDIBits
(
RetainPtr
<
const
CFX_DIBBase
> bitmap,
34
uint32_t color,
35
const
FX_RECT
& src_rect,
36
int
left,
37
int
top,
38
BlendMode
blend_type)
override
;
39
bool
StretchDIBits
(
RetainPtr
<
const
CFX_DIBBase
> bitmap,
40
uint32_t color,
41
int
dest_left,
42
int
dest_top,
43
int
dest_width,
44
int
dest_height,
45
const
FX_RECT
* pClipRect,
46
const
FXDIB_ResampleOptions
& options,
47
BlendMode
blend_type)
override
;
48
StartResult
StartDIBits
(
RetainPtr
<
const
CFX_DIBBase
> bitmap,
49
float
alpha,
50
uint32_t color,
51
const
CFX_Matrix
& matrix,
52
const
FXDIB_ResampleOptions
& options,
53
BlendMode
blend_type)
override
;
54
55
bool
UseFoxitStretchEngine(
RetainPtr
<
const
CFX_DIBBase
> bitmap,
56
uint32_t color,
57
int
dest_left,
58
int
dest_top,
59
int
dest_width,
60
int
dest_height,
61
const
FX_RECT
* pClipRect,
62
const
FXDIB_ResampleOptions
& options);
63
};
64
65
#
endif
// CORE_FXGE_WIN32_CGDI_DISPLAY_DRIVER_H_
g_pdfium_print_mode
WindowsPrintMode g_pdfium_print_mode
Definition
cfx_windowsrenderdevice.cpp:46
WindowsPrintMode
WindowsPrintMode
Definition
cfx_windowsrenderdevice.h:14
WindowsPrintMode::kEmfImageMasks
@ kEmfImageMasks
Definition
cfx_windowsrenderdevice.h:21
WindowsPrintMode::kTextOnly
@ kTextOnly
Definition
cfx_windowsrenderdevice.h:16
WindowsPrintMode::kEmf
@ kEmf
Definition
cfx_windowsrenderdevice.h:15
CFX_DIBBase
Definition
cfx_dibbase.h:35
CFX_Matrix
Definition
fx_coordinates.h:440
CFX_PSFontTracker
Definition
cfx_psfonttracker.h:17
CFX_WindowsRenderDevice
Definition
cfx_windowsrenderdevice.h:31
CFX_WindowsRenderDevice::CFX_WindowsRenderDevice
CFX_WindowsRenderDevice(HDC hDC, CFX_PSFontTracker *ps_font_tracker, const EncoderIface *encoder_iface)
Definition
cfx_windowsrenderdevice.cpp:48
CFX_WindowsRenderDevice::~CFX_WindowsRenderDevice
~CFX_WindowsRenderDevice() override
CGdiDeviceDriver
Definition
cgdi_device_driver.h:19
CGdiDisplayDriver::CGdiDisplayDriver
CGdiDisplayDriver(HDC hDC)
Definition
cgdi_display_driver.cpp:21
CGdiDisplayDriver::~CGdiDisplayDriver
~CGdiDisplayDriver() override
CGdiDisplayDriver::GetDIBits
bool GetDIBits(RetainPtr< CFX_DIBitmap > bitmap, int left, int top) const override
Definition
cgdi_display_driver.cpp:38
CGdiDisplayDriver::StartDIBits
StartResult StartDIBits(RetainPtr< const CFX_DIBBase > bitmap, float alpha, uint32_t color, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, BlendMode blend_type) override
Definition
cgdi_display_driver.cpp:217
CGdiDisplayDriver::GetDeviceCaps
int GetDeviceCaps(int caps_id) const override
Definition
cgdi_display_driver.cpp:32
CGdiDisplayDriver::SetDIBits
bool SetDIBits(RetainPtr< const CFX_DIBBase > bitmap, uint32_t color, const FX_RECT &src_rect, int left, int top, BlendMode blend_type) override
Definition
cgdi_display_driver.cpp:79
CGdiDisplayDriver::StretchDIBits
bool StretchDIBits(RetainPtr< const CFX_DIBBase > bitmap, uint32_t color, int dest_left, int dest_top, int dest_width, int dest_height, const FX_RECT *pClipRect, const FXDIB_ResampleOptions &options, BlendMode blend_type) override
Definition
cgdi_display_driver.cpp:154
fxcrt::RetainPtr
Definition
retain_ptr.h:28
BlendMode
BlendMode
Definition
fx_dib.h:119
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
EncoderIface
Definition
cfx_psrenderer.h:37
FXDIB_ResampleOptions
Definition
fx_dib.h:106
FX_RECT
Definition
fx_coordinates.h:144
RenderDeviceDriverIface::StartResult
Definition
renderdevicedriver_iface.h:51
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxge
win32
cgdi_display_driver.h
Generated on
for Qt by
1.18.0