summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_box.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-17 16:23:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-17 16:23:06 +0000
commit181ffee7dd19906f9eee175627a9e6d0abb2e881 (patch)
tree494e6a66de2282aaf216c7b7eb586dc9aa9d452a /xfa/fxfa/parser/cxfa_box.h
parenta49dc5b6fc0cb08991c111c747b35d9a4ec45b3f (diff)
downloadpdfium-181ffee7dd19906f9eee175627a9e6d0abb2e881.tar.xz
Move the box drawing code to CXFA_Box
This CL moves the code related to drawing boxes from CXFA_FFWidget to CXFA_Box. Change-Id: Ie69c59bb0b1eda1fcedbc26c6f8f30d53e2e268c Reviewed-on: https://pdfium-review.googlesource.com/23070 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_box.h')
-rw-r--r--xfa/fxfa/parser/cxfa_box.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_box.h b/xfa/fxfa/parser/cxfa_box.h
index 216a981c83..215925fe7c 100644
--- a/xfa/fxfa/parser/cxfa_box.h
+++ b/xfa/fxfa/parser/cxfa_box.h
@@ -11,10 +11,12 @@
#include <tuple>
#include <vector>
+#include "core/fxcrt/fx_coordinates.h"
#include "xfa/fxfa/parser/cxfa_node.h"
class CXFA_Edge;
class CXFA_Fill;
+class CXFA_Graphics;
class CXFA_Margin;
class CXFA_Stroke;
@@ -40,6 +42,11 @@ class CXFA_Box : public CXFA_Node {
Optional<int32_t> GetStartAngle();
Optional<int32_t> GetSweepAngle();
+ void Draw(CXFA_Graphics* pGS,
+ const CFX_RectF& rtWidget,
+ const CFX_Matrix& matrix,
+ bool forceRound);
+
protected:
CXFA_Box(CXFA_Document* pDoc,
XFA_PacketType ePacket,