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
cfx_agg_cliprgn.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_FXGE_AGG_CFX_AGG_CLIPRGN_H_
8
#
define
CORE_FXGE_AGG_CFX_AGG_CLIPRGN_H_
9
10
#
include
"core/fxcrt/fx_coordinates.h"
11
#
include
"core/fxcrt/retain_ptr.h"
12
13
class
CFX_DIBitmap;
14
15
class
CFX_AggClipRgn
{
16
public
:
17
enum
ClipType
:
bool
{
kRectI
,
kMaskF
};
18
19
CFX_AggClipRgn
(
int
device_width,
int
device_height);
20
CFX_AggClipRgn
(
const
CFX_AggClipRgn
& src);
21
~
CFX_AggClipRgn
();
22
23
ClipType
GetType
()
const
{
return
m_Type; }
24
const
FX_RECT
&
GetBox
()
const
{
return
m_Box; }
25
RetainPtr
<CFX_DIBitmap>
GetMask
()
const
{
return
m_Mask; }
26
27
void
IntersectRect
(
const
FX_RECT
& rect);
28
void
IntersectMaskF
(
int
left,
int
top,
RetainPtr
<CFX_DIBitmap> Mask);
29
30
private
:
31
void
IntersectMaskRect(
FX_RECT
rect,
32
FX_RECT
mask_rect,
33
RetainPtr
<CFX_DIBitmap> pOldMask);
34
35
ClipType
m_Type =
kRectI
;
36
FX_RECT
m_Box;
37
RetainPtr
<CFX_DIBitmap> m_Mask;
38
};
39
40
#
endif
// CORE_FXGE_AGG_CFX_AGG_CLIPRGN_H_
DCHECK_NE
#define DCHECK_NE(x, y)
Definition
check_op.h:18
CFX_AggBitmapComposer::ComposeScanline
void ComposeScanline(int line, pdfium::span< const uint8_t > scanline) override
Definition
cfx_agg_bitmapcomposer.cpp:103
CFX_AggBitmapComposer::CFX_AggBitmapComposer
CFX_AggBitmapComposer()
CFX_AggBitmapComposer::SetInfo
bool SetInfo(int width, int height, FXDIB_Format src_format, DataVector< uint32_t > src_palette) override
Definition
cfx_agg_bitmapcomposer.cpp:54
CFX_AggBitmapComposer::~CFX_AggBitmapComposer
~CFX_AggBitmapComposer() override
CFX_AggBitmapComposer::Compose
void Compose(const RetainPtr< CFX_DIBitmap > &pDest, const CFX_AggClipRgn *pClipRgn, float alpha, uint32_t mask_color, const FX_RECT &dest_rect, bool bVertical, bool bFlipX, bool bFlipY, bool bRgbByteOrder, BlendMode blend_mode)
Definition
cfx_agg_bitmapcomposer.cpp:25
CFX_AggClipRgn
Definition
cfx_agg_cliprgn.h:15
CFX_AggClipRgn::CFX_AggClipRgn
CFX_AggClipRgn(const CFX_AggClipRgn &src)
CFX_AggClipRgn::GetBox
const FX_RECT & GetBox() const
Definition
cfx_agg_cliprgn.h:24
CFX_AggClipRgn::IntersectRect
void IntersectRect(const FX_RECT &rect)
Definition
cfx_agg_cliprgn.cpp:25
CFX_AggClipRgn::ClipType
ClipType
Definition
cfx_agg_cliprgn.h:17
CFX_AggClipRgn::kMaskF
@ kMaskF
Definition
cfx_agg_cliprgn.h:17
CFX_AggClipRgn::kRectI
@ kRectI
Definition
cfx_agg_cliprgn.h:17
CFX_AggClipRgn::GetMask
RetainPtr< CFX_DIBitmap > GetMask() const
Definition
cfx_agg_cliprgn.h:25
CFX_AggClipRgn::CFX_AggClipRgn
CFX_AggClipRgn(int device_width, int device_height)
Definition
cfx_agg_cliprgn.cpp:18
CFX_AggClipRgn::IntersectMaskF
void IntersectMaskF(int left, int top, RetainPtr< CFX_DIBitmap > Mask)
Definition
cfx_agg_cliprgn.cpp:59
CFX_AggClipRgn::~CFX_AggClipRgn
~CFX_AggClipRgn()
CFX_AggClipRgn::GetType
ClipType GetType() const
Definition
cfx_agg_cliprgn.h:23
fxcrt::RetainPtr
Definition
retain_ptr.h:28
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
UNSAFE_TODO
#define UNSAFE_TODO(...)
Definition
compiler_specific.h:102
BlendMode
BlendMode
Definition
fx_dib.h:119
FXDIB_Format
FXDIB_Format
Definition
fx_dib.h:21
FXDIB_Format::k8bppMask
@ k8bppMask
Definition
fx_dib.h:28
FXDIB_Format::k1bppRgb
@ k1bppRgb
Definition
fx_dib.h:23
FXDIB_Format::k8bppRgb
@ k8bppRgb
Definition
fx_dib.h:24
FXDIB_Format::k1bppMask
@ k1bppMask
Definition
fx_dib.h:27
FX_SAFE_UINT32
pdfium::CheckedNumeric< uint32_t > FX_SAFE_UINT32
Definition
fx_safe_types.h:14
FXSYS_roundf
int FXSYS_roundf(float f)
Definition
fx_system.cpp:100
fxcrt
Definition
stl_util.h:17
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::top
int32_t top
Definition
fx_coordinates.h:179
FX_RECT::left
int32_t left
Definition
fx_coordinates.h:178
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxge
agg
cfx_agg_cliprgn.h
Generated on
for Qt by
1.18.0