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

Side by Side Diff: core/fpdfdoc/include/cpvt_wordprops.h

Issue 2374383003: Move core/fpdfdoc/include to core/fpdfdoc (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « core/fpdfdoc/include/cpvt_wordplace.h ('k') | core/fpdfdoc/include/cpvt_wordrange.h » ('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 CORE_FPDFDOC_INCLUDE_CPVT_WORDPROPS_H_
8 #define CORE_FPDFDOC_INCLUDE_CPVT_WORDPROPS_H_
9
10 #include "core/fpdfdoc/include/cpdf_variabletext.h"
11 #include "core/fxcrt/include/fx_system.h"
12 #include "core/fxge/include/fx_dib.h"
13
14 struct CPVT_WordProps {
15 CPVT_WordProps()
16 : nFontIndex(-1),
17 fFontSize(0.0f),
18 dwWordColor(0),
19 nScriptType(CPDF_VariableText::ScriptType::Normal),
20 nWordStyle(0),
21 fCharSpace(0.0f),
22 nHorzScale(0) {}
23
24 CPVT_WordProps(int32_t fontIndex,
25 FX_FLOAT fontSize,
26 FX_COLORREF wordColor = 0,
27 CPDF_VariableText::ScriptType scriptType =
28 CPDF_VariableText::ScriptType::Normal,
29 int32_t wordStyle = 0,
30 FX_FLOAT charSpace = 0,
31 int32_t horzScale = 100)
32 : nFontIndex(fontIndex),
33 fFontSize(fontSize),
34 dwWordColor(wordColor),
35 nScriptType(scriptType),
36 nWordStyle(wordStyle),
37 fCharSpace(charSpace),
38 nHorzScale(horzScale) {}
39
40 CPVT_WordProps(const CPVT_WordProps& other)
41 : nFontIndex(other.nFontIndex),
42 fFontSize(other.fFontSize),
43 dwWordColor(other.dwWordColor),
44 nScriptType(other.nScriptType),
45 nWordStyle(other.nWordStyle),
46 fCharSpace(other.fCharSpace),
47 nHorzScale(other.nHorzScale) {}
48
49 int32_t nFontIndex;
50 FX_FLOAT fFontSize;
51 FX_COLORREF dwWordColor;
52 CPDF_VariableText::ScriptType nScriptType;
53 int32_t nWordStyle;
54 FX_FLOAT fCharSpace;
55 int32_t nHorzScale;
56 };
57
58 #endif // CORE_FPDFDOC_INCLUDE_CPVT_WORDPROPS_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/include/cpvt_wordplace.h ('k') | core/fpdfdoc/include/cpvt_wordrange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698