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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 CFX_Matrix* pMatrix = NULL); | 133 CFX_Matrix* pMatrix = NULL); |
134 void DrawBtn(CFX_Graphics* pGraphics, | 134 void DrawBtn(CFX_Graphics* pGraphics, |
135 const CFX_RectF* pRect, | 135 const CFX_RectF* pRect, |
136 FWLTHEME_STATE eState, | 136 FWLTHEME_STATE eState, |
137 CFX_Matrix* pMatrix = NULL); | 137 CFX_Matrix* pMatrix = NULL); |
138 void DrawArrowBtn(CFX_Graphics* pGraphics, | 138 void DrawArrowBtn(CFX_Graphics* pGraphics, |
139 const CFX_RectF* pRect, | 139 const CFX_RectF* pRect, |
140 FWLTHEME_DIRECTION eDict, | 140 FWLTHEME_DIRECTION eDict, |
141 FWLTHEME_STATE eState, | 141 FWLTHEME_STATE eState, |
142 CFX_Matrix* pMatrix = NULL); | 142 CFX_Matrix* pMatrix = NULL); |
143 FWLCOLOR BlendColor(FWLCOLOR srcColor, FWLCOLOR renderColor, uint8_t scale); | |
144 uint32_t m_dwRefCount; | 143 uint32_t m_dwRefCount; |
145 IFDE_TextOut* m_pTextOut; | 144 IFDE_TextOut* m_pTextOut; |
146 IFX_Font* m_pFDEFont; | 145 IFX_Font* m_pFDEFont; |
147 FX_FLOAT m_fValue; | 146 FX_FLOAT m_fValue; |
148 uint32_t m_dwValue; | 147 uint32_t m_dwValue; |
149 CFX_RectF m_rtMargin; | 148 CFX_RectF m_rtMargin; |
150 uint32_t m_dwThemeID; | 149 uint32_t m_dwThemeID; |
151 CFX_Matrix _ctm; | 150 CFX_Matrix _ctm; |
152 }; | 151 }; |
153 FX_BOOL FWLTHEME_Init(); | 152 FX_BOOL FWLTHEME_Init(); |
154 void FWLTHEME_Release(); | 153 void FWLTHEME_Release(); |
155 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID); | 154 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID); |
156 uint32_t FWL_GetThemeColor(uint32_t dwThemeID); | 155 uint32_t FWL_GetThemeColor(uint32_t dwThemeID); |
157 uint32_t FWL_MakeThemeID(uint32_t dwLayout, uint32_t dwColor); | |
158 | 156 |
159 class CFWL_ArrowData { | 157 class CFWL_ArrowData { |
160 public: | 158 public: |
161 static CFWL_ArrowData* GetInstance(); | 159 static CFWL_ArrowData* GetInstance(); |
162 static FX_BOOL IsInstance(); | 160 static FX_BOOL IsInstance(); |
163 static void DestroyInstance(); | 161 static void DestroyInstance(); |
164 virtual ~CFWL_ArrowData(); | 162 virtual ~CFWL_ArrowData(); |
165 void SetColorData(uint32_t dwID); | 163 void SetColorData(uint32_t dwID); |
166 | 164 |
167 class CColorData { | 165 class CColorData { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 209 |
212 protected: | 210 protected: |
213 CFWL_FontManager(); | 211 CFWL_FontManager(); |
214 virtual ~CFWL_FontManager(); | 212 virtual ~CFWL_FontManager(); |
215 | 213 |
216 static CFWL_FontManager* s_FontManager; | 214 static CFWL_FontManager* s_FontManager; |
217 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; | 215 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; |
218 }; | 216 }; |
219 | 217 |
220 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 218 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
OLD | NEW |