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
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
13class CFX_DIBitmap;
14
16 public:
17 enum ClipType : bool { kRectI, kMaskF };
18
19 CFX_AggClipRgn(int device_width, int device_height);
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_
#define DCHECK_NE(x, y)
Definition check_op.h:18
void ComposeScanline(int line, pdfium::span< const uint8_t > scanline) override
bool SetInfo(int width, int height, FXDIB_Format src_format, DataVector< uint32_t > src_palette) override
~CFX_AggBitmapComposer() override
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)
CFX_AggClipRgn(const CFX_AggClipRgn &src)
const FX_RECT & GetBox() const
void IntersectRect(const FX_RECT &rect)
RetainPtr< CFX_DIBitmap > GetMask() const
CFX_AggClipRgn(int device_width, int device_height)
void IntersectMaskF(int left, int top, RetainPtr< CFX_DIBitmap > Mask)
ClipType GetType() const
#define UNSAFE_TODO(...)
BlendMode
Definition fx_dib.h:119
FXDIB_Format
Definition fx_dib.h:21
pdfium::CheckedNumeric< uint32_t > FX_SAFE_UINT32
int Height() const
int Width() const
int32_t top
int32_t left