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_shadingobject.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_PAGE_CPDF_SHADINGOBJECT_H_
8
#
define
CORE_FPDFAPI_PAGE_CPDF_SHADINGOBJECT_H_
9
10
#
include
"core/fpdfapi/page/cpdf_pageobject.h"
11
#
include
"core/fxcrt/fx_coordinates.h"
12
#
include
"core/fxcrt/retain_ptr.h"
13
14
class
CPDF_ShadingPattern;
15
16
class
CPDF_ShadingObject
final
:
public
CPDF_PageObject
{
17
public
:
18
CPDF_ShadingObject
(int32_t content_stream,
19
RetainPtr
<CPDF_ShadingPattern> pattern,
20
const
CFX_Matrix
& matrix);
21
~
CPDF_ShadingObject
()
override
;
22
23
// CPDF_PageObject:
24
Type
GetType
()
const
override
;
25
void
Transform
(
const
CFX_Matrix
& matrix)
override
;
26
bool
IsShading
()
const
override
;
27
CPDF_ShadingObject*
AsShading
()
override
;
28
const
CPDF_ShadingObject*
AsShading
()
const
override
;
29
30
void
CalcBoundingBox
();
31
32
const
CPDF_ShadingPattern*
pattern
()
const
{
return
m_pShading.Get(); }
33
const
CFX_Matrix
&
matrix
()
const
{
return
m_Matrix; }
34
35
private
:
36
RetainPtr
<CPDF_ShadingPattern> m_pShading;
37
CFX_Matrix
m_Matrix;
38
};
39
40
#
endif
// CORE_FPDFAPI_PAGE_CPDF_SHADINGOBJECT_H_
CFX_Matrix
Definition
fx_coordinates.h:452
CFX_Matrix::Concat
void Concat(const CFX_Matrix &right)
Definition
fx_coordinates.h:490
CFX_Matrix::CFX_Matrix
CFX_Matrix(const CFX_Matrix &other)=default
CPDF_ClipPath
Definition
cpdf_clippath.h:22
CPDF_ClipPath::Transform
void Transform(const CFX_Matrix &matrix)
Definition
cpdf_clippath.cpp:121
CPDF_ClipPath::HasRef
bool HasRef() const
Definition
cpdf_clippath.h:32
CPDF_PageObject
Definition
cpdf_pageobject.h:27
CPDF_PageObject::SetRect
void SetRect(const CFX_FloatRect &rect)
Definition
cpdf_pageobject.h:70
CPDF_PageObject::SetDirty
void SetDirty(bool value)
Definition
cpdf_pageobject.h:63
CPDF_PageObject::CPDF_PageObject
CPDF_PageObject(int32_t content_stream)
Definition
cpdf_pageobject.cpp:13
CPDF_PageObject::Type
Type
Definition
cpdf_pageobject.h:30
CPDF_PageObject::Type::kShading
@ kShading
CPDF_PageObject::clip_path
const CPDF_ClipPath & clip_path() const
Definition
cpdf_pageobject.h:100
CPDF_PageObject::GetRect
const CFX_FloatRect & GetRect() const
Definition
cpdf_pageobject.h:71
CPDF_PageObject::mutable_clip_path
CPDF_ClipPath & mutable_clip_path()
Definition
cpdf_pageobject.h:101
CPDF_ShadingObject::pattern
const CPDF_ShadingPattern * pattern() const
Definition
cpdf_shadingobject.h:32
CPDF_ShadingObject::IsShading
bool IsShading() const override
Definition
cpdf_shadingobject.cpp:41
CPDF_ShadingObject::~CPDF_ShadingObject
~CPDF_ShadingObject() override
CPDF_ShadingObject::AsShading
const CPDF_ShadingObject * AsShading() const override
Definition
cpdf_shadingobject.cpp:49
CPDF_ShadingObject::AsShading
CPDF_ShadingObject * AsShading() override
Definition
cpdf_shadingobject.cpp:45
CPDF_ShadingObject::CPDF_ShadingObject
CPDF_ShadingObject(int32_t content_stream, RetainPtr< CPDF_ShadingPattern > pattern, const CFX_Matrix &matrix)
Definition
cpdf_shadingobject.cpp:13
CPDF_ShadingObject::matrix
const CFX_Matrix & matrix() const
Definition
cpdf_shadingobject.h:33
CPDF_ShadingObject::GetType
Type GetType() const override
Definition
cpdf_shadingobject.cpp:22
CPDF_ShadingObject::CalcBoundingBox
void CalcBoundingBox()
Definition
cpdf_shadingobject.cpp:53
CPDF_ShadingObject::Transform
void Transform(const CFX_Matrix &matrix) override
Definition
cpdf_shadingobject.cpp:26
fxcrt::RetainPtr
Definition
retain_ptr.h:29
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfapi
page
cpdf_shadingobject.h
Generated on Sat Sep 21 2024 00:52:49 for Qt by
1.12.0