OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_TEXTSTATE_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_TEXTSTATE_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_TEXTSTATE_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_TEXTSTATE_H_ |
9 | 9 |
10 #include "core/fpdfapi/fpdf_page/include/cpdf_textstatedata.h" | 10 #include "core/fpdfapi/fpdf_page/include/cpdf_textstatedata.h" |
11 #include "core/include/fxcrt/fx_basic.h" | 11 #include "core/fxcrt/include/fx_basic.h" |
12 | 12 |
13 class CPDF_Font; | 13 class CPDF_Font; |
14 | 14 |
15 class CPDF_TextState : public CFX_CountRef<CPDF_TextStateData> { | 15 class CPDF_TextState : public CFX_CountRef<CPDF_TextStateData> { |
16 public: | 16 public: |
17 CPDF_Font* GetFont() const { return m_pObject->m_pFont; } | 17 CPDF_Font* GetFont() const { return m_pObject->m_pFont; } |
18 void SetFont(CPDF_Font* pFont); | 18 void SetFont(CPDF_Font* pFont); |
19 | 19 |
20 FX_FLOAT GetFontSize() const { return m_pObject->m_FontSize; } | 20 FX_FLOAT GetFontSize() const { return m_pObject->m_FontSize; } |
21 FX_FLOAT* GetMatrix() const { return m_pObject->m_Matrix; } | 21 FX_FLOAT* GetMatrix() const { return m_pObject->m_Matrix; } |
22 FX_FLOAT GetFontSizeV() const; | 22 FX_FLOAT GetFontSizeV() const; |
23 FX_FLOAT GetFontSizeH() const; | 23 FX_FLOAT GetFontSizeH() const; |
24 FX_FLOAT GetBaselineAngle() const; | 24 FX_FLOAT GetBaselineAngle() const; |
25 FX_FLOAT GetShearAngle() const; | 25 FX_FLOAT GetShearAngle() const; |
26 }; | 26 }; |
27 | 27 |
28 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_TEXTSTATE_H_ | 28 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_TEXTSTATE_H_ |
OLD | NEW |