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_INCLUDE_FWL_CORE_FWL_THEME_H_ | 7 #ifndef XFA_INCLUDE_FWL_CORE_FWL_THEME_H_ |
8 #define XFA_INCLUDE_FWL_CORE_FWL_THEME_H_ | 8 #define XFA_INCLUDE_FWL_CORE_FWL_THEME_H_ |
9 | 9 |
| 10 #include "core/include/fxcrt/fx_coordinates.h" |
| 11 #include "core/include/fxcrt/fx_system.h" |
10 #include "xfa/include/fwl/core/fwl_error.h" | 12 #include "xfa/include/fwl/core/fwl_error.h" |
11 #include "xfa/include/fxgraphics/fx_graphics.h" | |
12 | 13 |
13 class IFWL_Widget; | 14 class IFWL_Widget; |
| 15 class CFX_Graphics; |
| 16 class CFX_DIBitmap; |
| 17 class CFX_Path; |
14 | 18 |
15 #define FWL_WGTCAPACITY_CXBorder 1 | 19 #define FWL_WGTCAPACITY_CXBorder 1 |
16 #define FWL_WGTCAPACITY_CYBorder 2 | 20 #define FWL_WGTCAPACITY_CYBorder 2 |
17 #define FWL_WGTCAPACITY_ScrollBarWidth 3 | 21 #define FWL_WGTCAPACITY_ScrollBarWidth 3 |
18 #define FWL_WGTCAPACITY_EdgeFlat 4 | 22 #define FWL_WGTCAPACITY_EdgeFlat 4 |
19 #define FWL_WGTCAPACITY_EdgeRaised 5 | 23 #define FWL_WGTCAPACITY_EdgeRaised 5 |
20 #define FWL_WGTCAPACITY_EdgeSunken 6 | 24 #define FWL_WGTCAPACITY_EdgeSunken 6 |
21 #define FWL_WGTCAPACITY_Font 7 | 25 #define FWL_WGTCAPACITY_Font 7 |
22 #define FWL_WGTCAPACITY_FontSize 8 | 26 #define FWL_WGTCAPACITY_FontSize 8 |
23 #define FWL_WGTCAPACITY_TextColor 9 | 27 #define FWL_WGTCAPACITY_TextColor 9 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget) = 0; | 79 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget) = 0; |
76 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, | 80 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, |
77 CFX_RectF& rtPart) = 0; | 81 CFX_RectF& rtPart) = 0; |
78 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, | 82 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, |
79 FX_FLOAT fx, | 83 FX_FLOAT fx, |
80 FX_FLOAT fy) = 0; | 84 FX_FLOAT fy) = 0; |
81 virtual FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) = 0; | 85 virtual FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) = 0; |
82 }; | 86 }; |
83 | 87 |
84 #endif // XFA_INCLUDE_FWL_CORE_FWL_THEME_H_ | 88 #endif // XFA_INCLUDE_FWL_CORE_FWL_THEME_H_ |
OLD | NEW |