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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 FX_FLOAT fFontSize, | 127 FX_FLOAT fFontSize, |
128 FX_ARGB rgbFont); | 128 FX_ARGB rgbFont); |
129 CFGAS_GEFont* GetFont(CFWL_Widget* pWidget); | 129 CFGAS_GEFont* GetFont(CFWL_Widget* pWidget); |
130 | 130 |
131 protected: | 131 protected: |
132 CFWL_WidgetTP(); | 132 CFWL_WidgetTP(); |
133 | 133 |
134 void InitTTO(); | 134 void InitTTO(); |
135 void FinalizeTTO(); | 135 void FinalizeTTO(); |
136 | 136 |
137 void DrawEdge(CFX_Graphics* pGraphics, | |
138 uint32_t dwStyles, | |
139 const CFX_RectF* pRect, | |
140 CFX_Matrix* pMatrix = nullptr); | |
141 void Draw3DRect(CFX_Graphics* pGraphics, | 137 void Draw3DRect(CFX_Graphics* pGraphics, |
142 FWLTHEME_EDGE eType, | 138 FWLTHEME_EDGE eType, |
143 FX_FLOAT fWidth, | 139 FX_FLOAT fWidth, |
144 const CFX_RectF* pRect, | 140 const CFX_RectF* pRect, |
145 FX_ARGB cr1, | 141 FX_ARGB cr1, |
146 FX_ARGB cr2, | 142 FX_ARGB cr2, |
147 FX_ARGB cr3, | 143 FX_ARGB cr3, |
148 FX_ARGB cr4, | 144 FX_ARGB cr4, |
149 CFX_Matrix* pMatrix = nullptr); | 145 CFX_Matrix* pMatrix = nullptr); |
150 void Draw3DCircle(CFX_Graphics* pGraphics, | 146 void Draw3DCircle(CFX_Graphics* pGraphics, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 250 |
255 protected: | 251 protected: |
256 CFWL_FontManager(); | 252 CFWL_FontManager(); |
257 virtual ~CFWL_FontManager(); | 253 virtual ~CFWL_FontManager(); |
258 | 254 |
259 static CFWL_FontManager* s_FontManager; | 255 static CFWL_FontManager* s_FontManager; |
260 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; | 256 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; |
261 }; | 257 }; |
262 | 258 |
263 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 259 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
OLD | NEW |