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
cxfa_ffrectangle.cpp
Go to the documentation of this file.
1
// Copyright 2017 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
"xfa/fxfa/cxfa_ffrectangle.h"
8
9
#
include
"xfa/fxfa/parser/cxfa_rectangle.h"
10
#
include
"xfa/fxfa/parser/cxfa_value.h"
11
12
CXFA_FFRectangle::CXFA_FFRectangle(
CXFA_Node
* pNode) :
CXFA_FFWidget
(
pNode
)
{}
13
14
CXFA_FFRectangle::~
CXFA_FFRectangle
() =
default
;
15
16
void
CXFA_FFRectangle::
RenderWidget
(
CFGAS_GEGraphics
* pGS,
17
const
CFX_Matrix
& matrix,
18
HighlightOption
highlight) {
19
if
(!
HasVisibleStatus
())
20
return
;
21
22
CXFA_Value* value = m_pNode->GetFormValueIfExists();
23
if
(!value)
24
return
;
25
26
CFX_RectF
rect =
GetRectWithoutRotate
();
27
CXFA_Margin* margin = m_pNode->GetMarginIfExists();
28
XFA_RectWithoutMargin
(
&rect
,
margin
)
;
29
30
CFX_Matrix
mtRotate =
GetRotateMatrix
();
31
mtRotate
.
Concat
(
matrix
)
;
32
DrawBorder
(pGS, value
->
GetRectangleIfExists
(
)
, rect, mtRotate);
33
}
CFGAS_GEGraphics
Definition
cfgas_gegraphics.h:26
CFX_Matrix
Definition
fx_coordinates.h:440
CFX_Matrix::Concat
void Concat(const CFX_Matrix &right)
Definition
fx_coordinates.h:480
CFX_RectF
Definition
fx_coordinates.h:276
CXFA_FFRectangle::~CXFA_FFRectangle
~CXFA_FFRectangle() override
CXFA_FFRectangle::RenderWidget
void RenderWidget(CFGAS_GEGraphics *pGS, const CFX_Matrix &matrix, HighlightOption highlight) override
Definition
cxfa_ffrectangle.cpp:16
CXFA_FFWidget
Definition
cxfa_ffwidget.h:69
CXFA_FFWidget::GetRotateMatrix
CFX_Matrix GetRotateMatrix() override
Definition
cxfa_ffwidget.cpp:511
CXFA_FFWidget::CXFA_FFWidget
CXFA_FFWidget(CXFA_Node *pNode)
Definition
cxfa_ffwidget.cpp:195
CXFA_FFWidget::HasVisibleStatus
bool HasVisibleStatus() const
Definition
cxfa_ffwidget.cpp:609
CXFA_FFWidget::DrawBorder
void DrawBorder(CFGAS_GEGraphics *pGS, CXFA_Box *box, const CFX_RectF &rtBorder, const CFX_Matrix &matrix)
Definition
cxfa_ffwidget.cpp:318
CXFA_FFWidget::HighlightOption
HighlightOption
Definition
cxfa_ffwidget.h:72
CXFA_FFWidget::GetRectWithoutRotate
CFX_RectF GetRectWithoutRotate()
Definition
cxfa_ffwidget.cpp:226
CXFA_Node
Definition
cxfa_node.h:94
CXFA_Value::GetRectangleIfExists
CXFA_Rectangle * GetRectangleIfExists() const
Definition
cxfa_value.cpp:80
XFA_RectWithoutMargin
void XFA_RectWithoutMargin(CFX_RectF *rt, const CXFA_Margin *margin)
Definition
cxfa_ffwidget.cpp:179
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fxfa
cxfa_ffrectangle.cpp
Generated on
for Qt by
1.18.0