| 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_CHECKBOXTP_H_ | 7 #ifndef XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ |
| 8 #define XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ | 8 #define XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "xfa/fwl/theme/cfwl_utils.h" | 12 #include "xfa/fwl/theme/cfwl_utils.h" |
| 13 #include "xfa/fwl/theme/cfwl_widgettp.h" | 13 #include "xfa/fwl/theme/cfwl_widgettp.h" |
| 14 | 14 |
| 15 class CFWL_CheckBoxTP : public CFWL_WidgetTP { | 15 class CFWL_CheckBoxTP : public CFWL_WidgetTP { |
| 16 public: | 16 public: |
| 17 CFWL_CheckBoxTP(); | 17 CFWL_CheckBoxTP(); |
| 18 ~CFWL_CheckBoxTP() override; | 18 ~CFWL_CheckBoxTP() override; |
| 19 | 19 |
| 20 // CFWL_WidgeTP | 20 // CFWL_WidgeTP |
| 21 bool IsValidWidget(IFWL_Widget* pWidget) override; | 21 bool IsValidWidget(IFWL_Widget* pWidget) override; |
| 22 uint32_t SetThemeID(IFWL_Widget* pWidget, | 22 uint32_t SetThemeID(IFWL_Widget* pWidget, uint32_t dwThemeID) override; |
| 23 uint32_t dwThemeID, | |
| 24 FX_BOOL bChildren = TRUE) override; | |
| 25 FX_BOOL DrawText(CFWL_ThemeText* pParams) override; | 23 FX_BOOL DrawText(CFWL_ThemeText* pParams) override; |
| 26 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override; | 24 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override; |
| 27 FWL_Error Initialize() override; | 25 FWL_Error Initialize() override; |
| 28 FWL_Error Finalize() override; | 26 FWL_Error Finalize() override; |
| 29 | 27 |
| 30 protected: | 28 protected: |
| 31 struct CKBThemeData { | 29 struct CKBThemeData { |
| 32 FX_ARGB clrBoxBk[13][2]; | 30 FX_ARGB clrBoxBk[13][2]; |
| 33 FX_ARGB clrSignBorderNormal; | 31 FX_ARGB clrSignBorderNormal; |
| 34 FX_ARGB clrSignBorderDisable; | 32 FX_ARGB clrSignBorderDisable; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 FX_BOOL bDisable, | 80 FX_BOOL bDisable, |
| 83 CFX_Matrix* pMatrix); | 81 CFX_Matrix* pMatrix); |
| 84 void SetThemeData(uint32_t dwID); | 82 void SetThemeData(uint32_t dwID); |
| 85 void InitCheckPath(FX_FLOAT fCheckLen); | 83 void InitCheckPath(FX_FLOAT fCheckLen); |
| 86 | 84 |
| 87 std::unique_ptr<CKBThemeData> m_pThemeData; | 85 std::unique_ptr<CKBThemeData> m_pThemeData; |
| 88 std::unique_ptr<CFX_Path> m_pCheckPath; | 86 std::unique_ptr<CFX_Path> m_pCheckPath; |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ | 89 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ |
| OLD | NEW |