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_LIGHT_H | 7 #ifndef _FWL_THEME_LIGHT_H |
8 #define _FWL_THEME_LIGHT_H | 8 #define _FWL_THEME_LIGHT_H |
9 class CFWL_ThemeBackground; | 9 class CFWL_ThemeBackground; |
10 class CFWL_ThemeText; | 10 class CFWL_ThemeText; |
11 class CFWL_ThemePart; | 11 class CFWL_ThemePart; |
12 class CFWL_WidgetTP; | 12 class CFWL_WidgetTP; |
13 class IFWL_Widget; | 13 class IFWL_Widget; |
14 class CFWL_Theme; | 14 class CFWL_Theme; |
15 class CFWL_Theme : public CFX_Object | 15 class CFWL_Theme |
16 { | 16 { |
17 public: | 17 public: |
18 virtual FX_BOOL IsValidWidget(IFWL_Widget *pWidget); | 18 virtual FX_BOOL IsValidWidget(IFWL_Widget *pWidget); |
19 virtual FX_DWORD GetThemeID(IFWL_Widget *pWidget); | 19 virtual FX_DWORD GetThemeID(IFWL_Widget *pWidget); |
20 virtual FX_DWORD SetThemeID(IFWL_Widget *pWidget, FX_DWORD dwThemeID, FX_
BOOL bChildren = TRUE); | 20 virtual FX_DWORD SetThemeID(IFWL_Widget *pWidget, FX_DWORD dwThemeID, FX_
BOOL bChildren = TRUE); |
21 virtual FWL_ERR GetThemeMatrix(IFWL_Widget *pWidget, CFX_Matrix
&matrix); | 21 virtual FWL_ERR GetThemeMatrix(IFWL_Widget *pWidget, CFX_Matrix
&matrix); |
22 virtual FWL_ERR SetThemeMatrix(IFWL_Widget *pWidget, const CFX_M
atrix &matrix); | 22 virtual FWL_ERR SetThemeMatrix(IFWL_Widget *pWidget, const CFX_M
atrix &matrix); |
23 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground *pParams); | 23 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground *pParams); |
24 virtual FX_BOOL DrawText(CFWL_ThemeText *pParams); | 24 virtual FX_BOOL DrawText(CFWL_ThemeText *pParams); |
25 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac
ity); | 25 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac
ity); |
26 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget *pWidget); | 26 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget *pWidget); |
27 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, CFX_Rect
F &rtPart); | 27 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, CFX_Rect
F &rtPart); |
28 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, FX_FLOAT fx
, FX_FLOAT fy); | 28 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, FX_FLOAT fx
, FX_FLOAT fy); |
29 virtual FX_BOOL CalcTextRect(CFWL_ThemeText *pParams, CFX_RectF
&rect); | 29 virtual FX_BOOL CalcTextRect(CFWL_ThemeText *pParams, CFX_RectF
&rect); |
30 virtual FWL_ERR Initialize(); | 30 virtual FWL_ERR Initialize(); |
31 virtual FWL_ERR Finalize(); | 31 virtual FWL_ERR Finalize(); |
32 CFWL_Theme(); | 32 CFWL_Theme(); |
33 virtual ~CFWL_Theme(); | 33 virtual ~CFWL_Theme(); |
34 FWL_ERR SetFont(IFWL_Widget *pWidget, FX_LPCWSTR strFont, FX_FLO
AT fFontSize, FX_ARGB rgbFont); | 34 FWL_ERR SetFont(IFWL_Widget *pWidget, FX_LPCWSTR strFont, FX_FLO
AT fFontSize, FX_ARGB rgbFont); |
35 CFWL_WidgetTP* GetTheme(IFWL_Widget* pWidget); | 35 CFWL_WidgetTP* GetTheme(IFWL_Widget* pWidget); |
36 protected: | 36 protected: |
37 CFX_PtrArray m_arrThemes; | 37 CFX_PtrArray m_arrThemes; |
38 }; | 38 }; |
39 #endif | 39 #endif |
OLD | NEW |