Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: xfa/fxfa/parser/cxfa_stroke.h

Issue 1861353002: Split fxfa_objectacc.h into pieces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/parser/cxfa_script.cpp ('k') | xfa/fxfa/parser/cxfa_stroke.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
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 XFA_FXFA_PARSER_CXFA_STROKE_H_
8 #define XFA_FXFA_PARSER_CXFA_STROKE_H_
9
10 #include "core/fxcrt/include/fx_system.h"
11 #include "core/fxge/include/fx_dib.h"
12 #include "xfa/fxfa/parser/cxfa_data.h"
13 #include "xfa/include/fxfa/fxfa_basic.h"
14
15 enum StrokeSameStyle {
16 XFA_STROKE_SAMESTYLE_NoPresence = 1,
17 XFA_STROKE_SAMESTYLE_Corner = 2
18 };
19
20 class CXFA_Node;
21
22 class CXFA_Stroke : public CXFA_Data {
23 public:
24 explicit CXFA_Stroke(CXFA_Node* pNode) : CXFA_Data(pNode) {}
25
26 bool IsCorner() const { return GetClassID() == XFA_ELEMENT_Corner; }
27 bool IsEdge() const { return GetClassID() == XFA_ELEMENT_Edge; }
28 bool IsVisible() const { return GetPresence() == XFA_ATTRIBUTEENUM_Visible; }
29 int32_t GetPresence() const;
30 int32_t GetCapType() const;
31 int32_t GetStrokeType() const;
32 FX_FLOAT GetThickness() const;
33 CXFA_Measurement GetMSThickness() const;
34 void SetMSThickness(CXFA_Measurement msThinkness);
35 FX_ARGB GetColor() const;
36 void SetColor(FX_ARGB argb);
37 int32_t GetJoinType() const;
38 FX_BOOL IsInverted() const;
39 FX_FLOAT GetRadius() const;
40 FX_BOOL SameStyles(CXFA_Stroke stroke, uint32_t dwFlags = 0) const;
41 };
42
43 typedef CFX_ArrayTemplate<CXFA_Stroke> CXFA_StrokeArray;
44
45 #endif // XFA_FXFA_PARSER_CXFA_STROKE_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_script.cpp ('k') | xfa/fxfa/parser/cxfa_stroke.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698