OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 7 #ifndef XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "core/fxcrt/include/fx_coordinates.h" | 13 #include "core/fxcrt/include/fx_coordinates.h" |
14 #include "core/fxcrt/include/fx_system.h" | 14 #include "core/fxcrt/include/fx_system.h" |
15 #include "xfa/fwl/core/fwl_error.h" | 15 #include "xfa/fwl/core/fwl_error.h" |
16 #include "xfa/fxgraphics/include/cfx_graphics.h" | 16 #include "xfa/fxgraphics/include/cfx_graphics.h" |
17 #include "xfa/fwl/theme/cfwl_utils.h" | 17 #include "xfa/fwl/theme/cfwl_utils.h" |
18 | 18 |
19 class IFWL_Widget; | 19 class IFWL_Widget; |
20 class IFDE_TextOut; | 20 class CFDE_TextOut; |
21 class IFX_Font; | 21 class IFX_Font; |
22 class IFX_FontMgr; | 22 class IFX_FontMgr; |
23 class CFWL_ArrowData; | 23 class CFWL_ArrowData; |
24 class CFWL_ThemeBackground; | 24 class CFWL_ThemeBackground; |
25 class CFWL_ThemePart; | 25 class CFWL_ThemePart; |
26 class CFWL_ThemeText; | 26 class CFWL_ThemeText; |
27 | 27 |
28 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 28 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
29 class IFX_FontSourceEnum; | 29 class IFX_FontSourceEnum; |
30 #endif | 30 #endif |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 void DrawBtn(CFX_Graphics* pGraphics, | 134 void DrawBtn(CFX_Graphics* pGraphics, |
135 const CFX_RectF* pRect, | 135 const CFX_RectF* pRect, |
136 FWLTHEME_STATE eState, | 136 FWLTHEME_STATE eState, |
137 CFX_Matrix* pMatrix = NULL); | 137 CFX_Matrix* pMatrix = NULL); |
138 void DrawArrowBtn(CFX_Graphics* pGraphics, | 138 void DrawArrowBtn(CFX_Graphics* pGraphics, |
139 const CFX_RectF* pRect, | 139 const CFX_RectF* pRect, |
140 FWLTHEME_DIRECTION eDict, | 140 FWLTHEME_DIRECTION eDict, |
141 FWLTHEME_STATE eState, | 141 FWLTHEME_STATE eState, |
142 CFX_Matrix* pMatrix = NULL); | 142 CFX_Matrix* pMatrix = NULL); |
143 uint32_t m_dwRefCount; | 143 uint32_t m_dwRefCount; |
144 IFDE_TextOut* m_pTextOut; | 144 CFDE_TextOut* m_pTextOut; |
145 IFX_Font* m_pFDEFont; | 145 IFX_Font* m_pFDEFont; |
146 FX_FLOAT m_fValue; | 146 FX_FLOAT m_fValue; |
147 uint32_t m_dwValue; | 147 uint32_t m_dwValue; |
148 CFX_RectF m_rtMargin; | 148 CFX_RectF m_rtMargin; |
149 uint32_t m_dwThemeID; | 149 uint32_t m_dwThemeID; |
150 CFX_Matrix _ctm; | 150 CFX_Matrix _ctm; |
151 }; | 151 }; |
152 FX_BOOL FWLTHEME_Init(); | 152 FX_BOOL FWLTHEME_Init(); |
153 void FWLTHEME_Release(); | 153 void FWLTHEME_Release(); |
154 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID); | 154 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 protected: | 210 protected: |
211 CFWL_FontManager(); | 211 CFWL_FontManager(); |
212 virtual ~CFWL_FontManager(); | 212 virtual ~CFWL_FontManager(); |
213 | 213 |
214 static CFWL_FontManager* s_FontManager; | 214 static CFWL_FontManager* s_FontManager; |
215 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; | 215 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; |
216 }; | 216 }; |
217 | 217 |
218 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 218 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
OLD | NEW |