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
cpdf_pattern.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/fpdfapi/page/cpdf_pattern.h"
8
9
#
include
<
utility
>
10
11
#
include
"core/fpdfapi/parser/cpdf_dictionary.h"
12
#
include
"core/fxcrt/check.h"
13
14
CPDF_Pattern
::
CPDF_Pattern
(
CPDF_Document
* pDoc,
15
RetainPtr
<
CPDF_Object
> pObj,
16
const
CFX_Matrix
& parentMatrix)
17
:
m_pDocument
(
pDoc
),
18
m_pPatternObj
(
std
::
move
(
pObj
)),
19
m_ParentMatrix
(
parentMatrix
)
{
20
DCHECK
(m_pDocument);
21
DCHECK
(m_pPatternObj);
22
}
23
24
CPDF_Pattern
::~
CPDF_Pattern
() =
default
;
25
26
CPDF_TilingPattern*
CPDF_Pattern
::
AsTilingPattern
() {
27
return
nullptr
;
28
}
29
30
CPDF_ShadingPattern*
CPDF_Pattern
::
AsShadingPattern
() {
31
return
nullptr
;
32
}
33
34
void
CPDF_Pattern
::
SetPatternToFormMatrix
() {
35
RetainPtr
<
const
CPDF_Dictionary
> pDict = pattern_obj()->GetDict();
36
m_Pattern2Form = pDict->GetMatrixFor(
"Matrix"
) * m_ParentMatrix;
37
}
DCHECK
#define DCHECK
Definition
check.h:33
CFX_Matrix
Definition
fx_coordinates.h:440
CFX_Matrix::CFX_Matrix
CFX_Matrix(const CFX_Matrix &other)=default
CPDF_Dictionary::DictMap
std::map< ByteString, RetainPtr< CPDF_Object >, std::less<> > DictMap
Definition
cpdf_dictionary.h:31
CPDF_Document
Definition
cpdf_document.h:29
CPDF_Object
Definition
cpdf_object.h:50
CPDF_Pattern
Definition
cpdf_pattern.h:20
CPDF_Pattern::~CPDF_Pattern
~CPDF_Pattern() override
CPDF_Pattern::SetPatternToFormMatrix
void SetPatternToFormMatrix()
Definition
cpdf_pattern.cpp:34
CPDF_Pattern::AsShadingPattern
virtual CPDF_ShadingPattern * AsShadingPattern()
Definition
cpdf_pattern.cpp:30
CPDF_Pattern::AsTilingPattern
virtual CPDF_TilingPattern * AsTilingPattern()
Definition
cpdf_pattern.cpp:26
CPDF_Pattern::CPDF_Pattern
CPDF_Pattern(CPDF_Document *pDoc, RetainPtr< CPDF_Object > pObj, const CFX_Matrix &parentMatrix)
Definition
cpdf_pattern.cpp:14
fxcrt::RetainPtr
Definition
retain_ptr.h:28
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfapi
page
cpdf_pattern.cpp
Generated on
for Qt by
1.18.0