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 _FWL_THEME_H | 7 #ifndef XFA_INCLUDE_FWL_CORE_FWL_THEME_H_ |
8 #define _FWL_THEME_H | 8 #define XFA_INCLUDE_FWL_CORE_FWL_THEME_H_ |
| 9 |
9 class IFWL_Widget; | 10 class IFWL_Widget; |
10 class CFWL_ThemePart; | 11 class CFWL_ThemePart; |
11 class CFWL_ThemeBackground; | 12 class CFWL_ThemeBackground; |
12 class CFWL_ThemeText; | 13 class CFWL_ThemeText; |
13 class CFWL_ThemeElement; | 14 class CFWL_ThemeElement; |
14 class IFWL_ThemeProvider; | 15 class IFWL_ThemeProvider; |
15 #define FWL_WGTCAPACITY_CXBorder 1 | 16 #define FWL_WGTCAPACITY_CXBorder 1 |
16 #define FWL_WGTCAPACITY_CYBorder 2 | 17 #define FWL_WGTCAPACITY_CYBorder 2 |
17 #define FWL_WGTCAPACITY_ScrollBarWidth 3 | 18 #define FWL_WGTCAPACITY_ScrollBarWidth 3 |
18 #define FWL_WGTCAPACITY_EdgeFlat 4 | 19 #define FWL_WGTCAPACITY_EdgeFlat 4 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, | 73 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, |
73 FX_DWORD dwCapacity) = 0; | 74 FX_DWORD dwCapacity) = 0; |
74 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget) = 0; | 75 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget) = 0; |
75 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, | 76 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, |
76 CFX_RectF& rtPart) = 0; | 77 CFX_RectF& rtPart) = 0; |
77 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, | 78 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, |
78 FX_FLOAT fx, | 79 FX_FLOAT fx, |
79 FX_FLOAT fy) = 0; | 80 FX_FLOAT fy) = 0; |
80 virtual FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) = 0; | 81 virtual FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) = 0; |
81 }; | 82 }; |
82 #endif | 83 |
| 84 #endif // XFA_INCLUDE_FWL_CORE_FWL_THEME_H_ |
OLD | NEW |