• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 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_FDE_CFDE_DATA_H_
8 #define XFA_FDE_CFDE_DATA_H_
9 
10 #include "core/fxcrt/fx_coordinates.h"
11 
12 enum class FDE_TextAlignment : uint8_t {
13   kTopLeft = 0,
14   kCenterLeft,
15   kCenter,
16   kCenterRight
17 };
18 
19 struct FDE_TextStyle {
20   FDE_TextStyle() = default;
21   ~FDE_TextStyle() = default;
22 
ResetFDE_TextStyle23   void Reset() {
24     single_line_ = false;
25     line_wrap_ = false;
26     last_line_height_ = false;
27   }
28 
29   bool single_line_ = false;
30   bool line_wrap_ = false;
31   bool last_line_height_ = false;
32 };
33 
34 #endif  // XFA_FDE_CFDE_DATA_H_
35