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_WIDGETTP_H | 7 #ifndef _FWL_WIDGETTP_H |
8 #define _FWL_WIDGETTP_H | 8 #define _FWL_WIDGETTP_H |
9 class IFWL_ThemeProvider; | 9 class IFWL_ThemeProvider; |
10 class IFWL_Widget; | 10 class IFWL_Widget; |
(...skipping 29 matching lines...) Expand all Loading... |
40 protected: | 40 protected: |
41 CFWL_WidgetTP(); | 41 CFWL_WidgetTP(); |
42 FX_ERR InitTTO(); | 42 FX_ERR InitTTO(); |
43 FX_ERR FinalizeTTO(); | 43 FX_ERR FinalizeTTO(); |
44 void DrawEdge(CFX_Graphics *pGraphics, FX_DWORD dwStyles, const CFX_R
ectF *pRect, CFX_Matrix *pMatrix = NULL); | 44 void DrawEdge(CFX_Graphics *pGraphics, FX_DWORD dwStyles, const CFX_R
ectF *pRect, CFX_Matrix *pMatrix = NULL); |
45 void Draw3DRect(CFX_Graphics *pGraphics, FWLTHEME_EDGE eType, FX_FLOA
T fWidth, const CFX_RectF *pRect, FX_ARGB cr1, FX_ARGB cr2, FX_ARGB cr3, FX_ARGB
cr4, CFX_Matrix *pMatrix = NULL); | 45 void Draw3DRect(CFX_Graphics *pGraphics, FWLTHEME_EDGE eType, FX_FLOA
T fWidth, const CFX_RectF *pRect, FX_ARGB cr1, FX_ARGB cr2, FX_ARGB cr3, FX_ARGB
cr4, CFX_Matrix *pMatrix = NULL); |
46 void Draw3DCircle(CFX_Graphics *pGraphics, FWLTHEME_EDGE eType, FX_FL
OAT fWidth, const CFX_RectF *pRect, FX_ARGB cr1, FX_ARGB cr2, FX_ARGB cr3, FX_AR
GB cr4, CFX_Matrix *pMatrix = NULL); | 46 void Draw3DCircle(CFX_Graphics *pGraphics, FWLTHEME_EDGE eType, FX_FL
OAT fWidth, const CFX_RectF *pRect, FX_ARGB cr1, FX_ARGB cr2, FX_ARGB cr3, FX_AR
GB cr4, CFX_Matrix *pMatrix = NULL); |
47 void DrawBorder(CFX_Graphics *pGraphics, const CFX_RectF *pRect, CFX_
Matrix *pMatrix = NULL); | 47 void DrawBorder(CFX_Graphics *pGraphics, const CFX_RectF *pRect, CFX_
Matrix *pMatrix = NULL); |
48 void FillBackground(CFX_Graphics *pGraphics, const CFX_RectF *pRect,
CFX_Matrix *pMatrix = NULL); | 48 void FillBackground(CFX_Graphics *pGraphics, const CFX_RectF *pRect,
CFX_Matrix *pMatrix = NULL); |
49 void FillSoildRect(CFX_Graphics *pGraphics, FX_ARGB fillColor, const
CFX_RectF *pRect, CFX_Matrix *pMatrix = NULL); | 49 void FillSoildRect(CFX_Graphics *pGraphics, FX_ARGB fillColor, const
CFX_RectF *pRect, CFX_Matrix *pMatrix = NULL); |
50 void» DrawAxialShading(CFX_Graphics *pGraphics, FX_FLOAT fx1, FX_FLOAT
fy1, FX_FLOAT fx2, FX_FLOAT fy2, FX_ARGB beginColor, FX_ARGB endColor, CFX_Path
*path, FX_INT32 fillMode = FXFILL_WINDING, CFX_Matrix *pMatrix = NULL); | 50 void» DrawAxialShading(CFX_Graphics *pGraphics, FX_FLOAT fx1, FX_FLOAT
fy1, FX_FLOAT fx2, FX_FLOAT fy2, FX_ARGB beginColor, FX_ARGB endColor, CFX_Path
*path, int32_t fillMode = FXFILL_WINDING, CFX_Matrix *pMatrix = NULL); |
51 void DrawAnnulusRect(CFX_Graphics *pGraphics, FX_ARGB fillColor, cons
t CFX_RectF *pRect, FX_FLOAT fRingWidth = 1, CFX_Matrix *pMatrix = NULL); | 51 void DrawAnnulusRect(CFX_Graphics *pGraphics, FX_ARGB fillColor, cons
t CFX_RectF *pRect, FX_FLOAT fRingWidth = 1, CFX_Matrix *pMatrix = NULL); |
52 void DrawAnnulusCircle(CFX_Graphics *pGraphics, FX_ARGB fillColor, co
nst CFX_RectF *pRect, FX_FLOAT fWidth = 1, CFX_Matrix *pMatrix = NULL); | 52 void DrawAnnulusCircle(CFX_Graphics *pGraphics, FX_ARGB fillColor, co
nst CFX_RectF *pRect, FX_FLOAT fWidth = 1, CFX_Matrix *pMatrix = NULL); |
53 void DrawFocus(CFX_Graphics *pGraphics, const CFX_RectF *pRect, CFX_M
atrix *pMatrix = NULL); | 53 void DrawFocus(CFX_Graphics *pGraphics, const CFX_RectF *pRect, CFX_M
atrix *pMatrix = NULL); |
54 void DrawArrow(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTH
EME_DIRECTION eDict, FX_ARGB argbFill, FX_BOOL bPressed, CFX_Matrix *pMatrix = N
ULL); | 54 void DrawArrow(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTH
EME_DIRECTION eDict, FX_ARGB argbFill, FX_BOOL bPressed, CFX_Matrix *pMatrix = N
ULL); |
55 void DrawArrow(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTH
EME_DIRECTION eDict, FX_ARGB argSign, CFX_Matrix *pMatrix = NULL); | 55 void DrawArrow(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTH
EME_DIRECTION eDict, FX_ARGB argSign, CFX_Matrix *pMatrix = NULL); |
56 void DrawBtn(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTHEM
E_STATE eState, CFX_Matrix *pMatrix = NULL); | 56 void DrawBtn(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FWLTHEM
E_STATE eState, CFX_Matrix *pMatrix = NULL); |
57 void DrawArrowBtn(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FW
LTHEME_DIRECTION eDict, FWLTHEME_STATE eState, CFX_Matrix *pMatrix = NULL); | 57 void DrawArrowBtn(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FW
LTHEME_DIRECTION eDict, FWLTHEME_STATE eState, CFX_Matrix *pMatrix = NULL); |
58 FWLCOLOR BlendColor(FWLCOLOR srcColor, FWLCOLOR renderColor, FX_BYTE scale); | 58 FWLCOLOR BlendColor(FWLCOLOR srcColor, FWLCOLOR renderColor, uint8_t scale); |
59 FX_DWORD m_dwRefCount; | 59 FX_DWORD m_dwRefCount; |
60 IFDE_TextOut *m_pTextOut; | 60 IFDE_TextOut *m_pTextOut; |
61 IFX_Font *m_pFDEFont; | 61 IFX_Font *m_pFDEFont; |
62 FX_FLOAT m_fValue; | 62 FX_FLOAT m_fValue; |
63 FX_DWORD m_dwValue; | 63 FX_DWORD m_dwValue; |
64 CFX_RectF m_rtMargin; | 64 CFX_RectF m_rtMargin; |
65 FX_DWORD m_dwThemeID; | 65 FX_DWORD m_dwThemeID; |
66 CFX_Matrix _ctm; | 66 CFX_Matrix _ctm; |
67 }; | 67 }; |
68 FX_BOOL FWLTHEME_Init(); | 68 FX_BOOL FWLTHEME_Init(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 { | 116 { |
117 public: | 117 public: |
118 CFWL_FontManager(); | 118 CFWL_FontManager(); |
119 virtual ~CFWL_FontManager(); | 119 virtual ~CFWL_FontManager(); |
120 IFX_Font* FindFont(FX_WSTR wsFontFamily, FX_DWORD dwFontStyles, FX_WORD dwCo
dePage); | 120 IFX_Font* FindFont(FX_WSTR wsFontFamily, FX_DWORD dwFontStyles, FX_WORD dwCo
dePage); |
121 protected: | 121 protected: |
122 CFX_PtrArray m_arrFonts; | 122 CFX_PtrArray m_arrFonts; |
123 }; | 123 }; |
124 CFWL_FontManager *FWL_GetFontManager(); | 124 CFWL_FontManager *FWL_GetFontManager(); |
125 #endif | 125 #endif |
OLD | NEW |