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_FORM_THEMEPROVIDER_H | 7 #ifndef _FWL_FORM_THEMEPROVIDER_H |
8 #define _FWL_FORM_THEMEPROVIDER_H | 8 #define _FWL_FORM_THEMEPROVIDER_H |
9 class CFWL_WidgetTP; | 9 class CFWL_WidgetTP; |
10 class CFWL_FormTP; | 10 class CFWL_FormTP; |
(...skipping 12 matching lines...) Expand all Loading... |
23 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac
ity); | 23 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac
ity); |
24 virtual FWL_ERR GetPartRect(CFWL_ThemePart *pThemePart, CFX_Rect
F& rtPart); | 24 virtual FWL_ERR GetPartRect(CFWL_ThemePart *pThemePart, CFX_Rect
F& rtPart); |
25 protected: | 25 protected: |
26 | 26 |
27 void CalCloseBox(IFWL_Widget *pWidget, CFX_RectF &rect); | 27 void CalCloseBox(IFWL_Widget *pWidget, CFX_RectF &rect); |
28 void CalMaxBox(IFWL_Widget *pWidget, CFX_RectF &rect); | 28 void CalMaxBox(IFWL_Widget *pWidget, CFX_RectF &rect); |
29 void CalMinBox(IFWL_Widget *pWidget, CFX_RectF &rect); | 29 void CalMinBox(IFWL_Widget *pWidget, CFX_RectF &rect); |
30 void CalCaption(IFWL_Widget *pWidget, CFX_RectF &rect); | 30 void CalCaption(IFWL_Widget *pWidget, CFX_RectF &rect); |
31 void CalIcon(IFWL_Widget *pWidget, CFX_RectF &rect); | 31 void CalIcon(IFWL_Widget *pWidget, CFX_RectF &rect); |
32 | 32 |
33 void DrawFormBorder(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTHE
ME_STATE eState, CFX_Matrix *pMatrix, FX_INT32 iActive = 0); | 33 void DrawFormBorder(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTHE
ME_STATE eState, CFX_Matrix *pMatrix, int32_t iActive = 0); |
34 void DrawCaption(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTHEME_
STATE eState, CFX_Matrix *pMatrix, FX_INT32 iActive = 0); | 34 void DrawCaption(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTHEME_
STATE eState, CFX_Matrix *pMatrix, int32_t iActive = 0); |
35 void DrawNarrowCaption(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWL
THEME_STATE eState, CFX_Matrix *pMatrix, FX_INT32 iActive = 0); | 35 void DrawNarrowCaption(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWL
THEME_STATE eState, CFX_Matrix *pMatrix, int32_t iActive = 0); |
36 void DrawCloseBox(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTHEME
_STATE eState, CFX_Matrix *pMatrix, FX_INT32 iActive = 0); | 36 void DrawCloseBox(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTHEME
_STATE eState, CFX_Matrix *pMatrix, int32_t iActive = 0); |
37 void DrawMinMaxBoxCommon(CFX_Graphics *pGraphics, const CFX_RectF *pRect, F
WLTHEME_STATE eState, CFX_Matrix *pMatrix, FX_INT32 iActive = 0); | 37 void DrawMinMaxBoxCommon(CFX_Graphics *pGraphics, const CFX_RectF *pRect, F
WLTHEME_STATE eState, CFX_Matrix *pMatrix, int32_t iActive = 0); |
38 void DrawMinimizeBox(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTH
EME_STATE eState, CFX_Matrix *pMatrix, FX_INT32 iActive = 0); | 38 void DrawMinimizeBox(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTH
EME_STATE eState, CFX_Matrix *pMatrix, int32_t iActive = 0); |
39 void DrawMaximizeBox(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTH
EME_STATE eState, FX_BOOL bMax, CFX_Matrix *pMatrix, FX_INT32 iActive = 0); | 39 void DrawMaximizeBox(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTH
EME_STATE eState, FX_BOOL bMax, CFX_Matrix *pMatrix, int32_t iActive = 0); |
40 void DrawIconImage(CFX_Graphics *pGraphics, CFX_DIBitmap *pDIBitmap, const C
FX_RectF *pRect, FWLTHEME_STATE eState, CFX_Matrix *pMatrix, FX_INT32 iActive =
0); | 40 void DrawIconImage(CFX_Graphics *pGraphics, CFX_DIBitmap *pDIBitmap, const C
FX_RectF *pRect, FWLTHEME_STATE eState, CFX_Matrix *pMatrix, int32_t iActive =
0); |
41 void SetThemeData(FX_DWORD dwID); | 41 void SetThemeData(FX_DWORD dwID); |
42 void TransModeColor(FX_ARGB clrFore, FX_ARGB &clrBack); | 42 void TransModeColor(FX_ARGB clrFore, FX_ARGB &clrBack); |
43 void DeactiveForm(); | 43 void DeactiveForm(); |
44 void InitCaption(FX_BOOL bActive); | 44 void InitCaption(FX_BOOL bActive); |
45 CFX_DIBitmap *m_pActiveBitmap; | 45 CFX_DIBitmap *m_pActiveBitmap; |
46 CFX_DIBitmap *m_pDeactivebitmap; | 46 CFX_DIBitmap *m_pDeactivebitmap; |
47 CFX_RectF m_rtDisCaption; | 47 CFX_RectF m_rtDisCaption; |
48 CFX_RectF m_rtDisLBorder; | 48 CFX_RectF m_rtDisLBorder; |
49 CFX_RectF m_rtDisRBorder; | 49 CFX_RectF m_rtDisRBorder; |
50 CFX_RectF m_rtDisBBorder; | 50 CFX_RectF m_rtDisBBorder; |
(...skipping 13 matching lines...) Expand all Loading... |
64 FX_ARGB clrNormalBtEdgeDark[2][3]; | 64 FX_ARGB clrNormalBtEdgeDark[2][3]; |
65 FX_ARGB clrBtnEdgeOut[2]; | 65 FX_ARGB clrBtnEdgeOut[2]; |
66 FX_ARGB clrBtnCornerLight[2][3]; | 66 FX_ARGB clrBtnCornerLight[2][3]; |
67 FX_ARGB clrHeadText[2]; | 67 FX_ARGB clrHeadText[2]; |
68 FX_ARGB clrFormBorder[2][5]; | 68 FX_ARGB clrFormBorder[2][5]; |
69 FX_ARGB clrFormBorderLight[2]; | 69 FX_ARGB clrFormBorderLight[2]; |
70 FX_ARGB clrTransWhite; | 70 FX_ARGB clrTransWhite; |
71 } *m_pThemeData; | 71 } *m_pThemeData; |
72 }; | 72 }; |
73 #endif | 73 #endif |
OLD | NEW |