| 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_FWL_THEME_CFWL_WIDGETTP_H_ | 7 #ifndef XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
| 8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 FX_ARGB rgbFont); | 140 FX_ARGB rgbFont); |
| 141 CFGAS_GEFont* GetFont(IFWL_Widget* pWidget); | 141 CFGAS_GEFont* GetFont(IFWL_Widget* pWidget); |
| 142 | 142 |
| 143 protected: | 143 protected: |
| 144 CFWL_WidgetTP(); | 144 CFWL_WidgetTP(); |
| 145 FWL_Error InitTTO(); | 145 FWL_Error InitTTO(); |
| 146 FWL_Error FinalizeTTO(); | 146 FWL_Error FinalizeTTO(); |
| 147 void DrawEdge(CFX_Graphics* pGraphics, | 147 void DrawEdge(CFX_Graphics* pGraphics, |
| 148 uint32_t dwStyles, | 148 uint32_t dwStyles, |
| 149 const CFX_RectF* pRect, | 149 const CFX_RectF* pRect, |
| 150 CFX_Matrix* pMatrix = NULL); | 150 CFX_Matrix* pMatrix = nullptr); |
| 151 void Draw3DRect(CFX_Graphics* pGraphics, | 151 void Draw3DRect(CFX_Graphics* pGraphics, |
| 152 FWLTHEME_EDGE eType, | 152 FWLTHEME_EDGE eType, |
| 153 FX_FLOAT fWidth, | 153 FX_FLOAT fWidth, |
| 154 const CFX_RectF* pRect, | 154 const CFX_RectF* pRect, |
| 155 FX_ARGB cr1, | 155 FX_ARGB cr1, |
| 156 FX_ARGB cr2, | 156 FX_ARGB cr2, |
| 157 FX_ARGB cr3, | 157 FX_ARGB cr3, |
| 158 FX_ARGB cr4, | 158 FX_ARGB cr4, |
| 159 CFX_Matrix* pMatrix = NULL); | 159 CFX_Matrix* pMatrix = nullptr); |
| 160 void Draw3DCircle(CFX_Graphics* pGraphics, | 160 void Draw3DCircle(CFX_Graphics* pGraphics, |
| 161 FWLTHEME_EDGE eType, | 161 FWLTHEME_EDGE eType, |
| 162 FX_FLOAT fWidth, | 162 FX_FLOAT fWidth, |
| 163 const CFX_RectF* pRect, | 163 const CFX_RectF* pRect, |
| 164 FX_ARGB cr1, | 164 FX_ARGB cr1, |
| 165 FX_ARGB cr2, | 165 FX_ARGB cr2, |
| 166 FX_ARGB cr3, | 166 FX_ARGB cr3, |
| 167 FX_ARGB cr4, | 167 FX_ARGB cr4, |
| 168 CFX_Matrix* pMatrix = NULL); | 168 CFX_Matrix* pMatrix = nullptr); |
| 169 void DrawBorder(CFX_Graphics* pGraphics, | 169 void DrawBorder(CFX_Graphics* pGraphics, |
| 170 const CFX_RectF* pRect, | 170 const CFX_RectF* pRect, |
| 171 CFX_Matrix* pMatrix = NULL); | 171 CFX_Matrix* pMatrix = nullptr); |
| 172 void FillBackground(CFX_Graphics* pGraphics, | 172 void FillBackground(CFX_Graphics* pGraphics, |
| 173 const CFX_RectF* pRect, | 173 const CFX_RectF* pRect, |
| 174 CFX_Matrix* pMatrix = NULL); | 174 CFX_Matrix* pMatrix = nullptr); |
| 175 void FillSoildRect(CFX_Graphics* pGraphics, | 175 void FillSoildRect(CFX_Graphics* pGraphics, |
| 176 FX_ARGB fillColor, | 176 FX_ARGB fillColor, |
| 177 const CFX_RectF* pRect, | 177 const CFX_RectF* pRect, |
| 178 CFX_Matrix* pMatrix = NULL); | 178 CFX_Matrix* pMatrix = nullptr); |
| 179 void DrawAxialShading(CFX_Graphics* pGraphics, | 179 void DrawAxialShading(CFX_Graphics* pGraphics, |
| 180 FX_FLOAT fx1, | 180 FX_FLOAT fx1, |
| 181 FX_FLOAT fy1, | 181 FX_FLOAT fy1, |
| 182 FX_FLOAT fx2, | 182 FX_FLOAT fx2, |
| 183 FX_FLOAT fy2, | 183 FX_FLOAT fy2, |
| 184 FX_ARGB beginColor, | 184 FX_ARGB beginColor, |
| 185 FX_ARGB endColor, | 185 FX_ARGB endColor, |
| 186 CFX_Path* path, | 186 CFX_Path* path, |
| 187 int32_t fillMode = FXFILL_WINDING, | 187 int32_t fillMode = FXFILL_WINDING, |
| 188 CFX_Matrix* pMatrix = NULL); | 188 CFX_Matrix* pMatrix = nullptr); |
| 189 void DrawAnnulusRect(CFX_Graphics* pGraphics, | 189 void DrawAnnulusRect(CFX_Graphics* pGraphics, |
| 190 FX_ARGB fillColor, | 190 FX_ARGB fillColor, |
| 191 const CFX_RectF* pRect, | 191 const CFX_RectF* pRect, |
| 192 FX_FLOAT fRingWidth = 1, | 192 FX_FLOAT fRingWidth = 1, |
| 193 CFX_Matrix* pMatrix = NULL); | 193 CFX_Matrix* pMatrix = nullptr); |
| 194 void DrawAnnulusCircle(CFX_Graphics* pGraphics, | 194 void DrawAnnulusCircle(CFX_Graphics* pGraphics, |
| 195 FX_ARGB fillColor, | 195 FX_ARGB fillColor, |
| 196 const CFX_RectF* pRect, | 196 const CFX_RectF* pRect, |
| 197 FX_FLOAT fWidth = 1, | 197 FX_FLOAT fWidth = 1, |
| 198 CFX_Matrix* pMatrix = NULL); | 198 CFX_Matrix* pMatrix = nullptr); |
| 199 void DrawFocus(CFX_Graphics* pGraphics, | 199 void DrawFocus(CFX_Graphics* pGraphics, |
| 200 const CFX_RectF* pRect, | 200 const CFX_RectF* pRect, |
| 201 CFX_Matrix* pMatrix = NULL); | 201 CFX_Matrix* pMatrix = nullptr); |
| 202 void DrawArrow(CFX_Graphics* pGraphics, | 202 void DrawArrow(CFX_Graphics* pGraphics, |
| 203 const CFX_RectF* pRect, | 203 const CFX_RectF* pRect, |
| 204 FWLTHEME_DIRECTION eDict, | 204 FWLTHEME_DIRECTION eDict, |
| 205 FX_ARGB argbFill, | 205 FX_ARGB argbFill, |
| 206 FX_BOOL bPressed, | 206 FX_BOOL bPressed, |
| 207 CFX_Matrix* pMatrix = NULL); | 207 CFX_Matrix* pMatrix = nullptr); |
| 208 void DrawArrow(CFX_Graphics* pGraphics, | 208 void DrawArrow(CFX_Graphics* pGraphics, |
| 209 const CFX_RectF* pRect, | 209 const CFX_RectF* pRect, |
| 210 FWLTHEME_DIRECTION eDict, | 210 FWLTHEME_DIRECTION eDict, |
| 211 FX_ARGB argSign, | 211 FX_ARGB argSign, |
| 212 CFX_Matrix* pMatrix = NULL); | 212 CFX_Matrix* pMatrix = nullptr); |
| 213 void DrawBtn(CFX_Graphics* pGraphics, | 213 void DrawBtn(CFX_Graphics* pGraphics, |
| 214 const CFX_RectF* pRect, | 214 const CFX_RectF* pRect, |
| 215 FWLTHEME_STATE eState, | 215 FWLTHEME_STATE eState, |
| 216 CFX_Matrix* pMatrix = NULL); | 216 CFX_Matrix* pMatrix = nullptr); |
| 217 void DrawArrowBtn(CFX_Graphics* pGraphics, | 217 void DrawArrowBtn(CFX_Graphics* pGraphics, |
| 218 const CFX_RectF* pRect, | 218 const CFX_RectF* pRect, |
| 219 FWLTHEME_DIRECTION eDict, | 219 FWLTHEME_DIRECTION eDict, |
| 220 FWLTHEME_STATE eState, | 220 FWLTHEME_STATE eState, |
| 221 CFX_Matrix* pMatrix = NULL); | 221 CFX_Matrix* pMatrix = nullptr); |
| 222 uint32_t m_dwRefCount; | 222 uint32_t m_dwRefCount; |
| 223 std::unique_ptr<CFDE_TextOut> m_pTextOut; | 223 std::unique_ptr<CFDE_TextOut> m_pTextOut; |
| 224 CFGAS_GEFont* m_pFDEFont; | 224 CFGAS_GEFont* m_pFDEFont; |
| 225 FX_FLOAT m_fValue; | 225 FX_FLOAT m_fValue; |
| 226 uint32_t m_dwValue; | 226 uint32_t m_dwValue; |
| 227 CFX_RectF m_rtMargin; | 227 CFX_RectF m_rtMargin; |
| 228 uint32_t m_dwThemeID; | 228 uint32_t m_dwThemeID; |
| 229 CFX_Matrix _ctm; | 229 CFX_Matrix _ctm; |
| 230 }; | 230 }; |
| 231 FX_BOOL FWLTHEME_Init(); | 231 FX_BOOL FWLTHEME_Init(); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 protected: | 289 protected: |
| 290 CFWL_FontManager(); | 290 CFWL_FontManager(); |
| 291 virtual ~CFWL_FontManager(); | 291 virtual ~CFWL_FontManager(); |
| 292 | 292 |
| 293 static CFWL_FontManager* s_FontManager; | 293 static CFWL_FontManager* s_FontManager; |
| 294 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; | 294 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; |
| 295 }; | 295 }; |
| 296 | 296 |
| 297 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 297 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
| OLD | NEW |