| 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_CORE_CFWL_CHECKBOX_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_CHECKBOX_H_ |
| 8 #define XFA_FWL_CORE_CFWL_CHECKBOX_H_ | 8 #define XFA_FWL_CORE_CFWL_CHECKBOX_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class CFWL_WidgetProperties; | 48 class CFWL_WidgetProperties; |
| 49 class CFWL_Widget; | 49 class CFWL_Widget; |
| 50 | 50 |
| 51 class CFWL_CheckBox : public CFWL_Widget { | 51 class CFWL_CheckBox : public CFWL_Widget { |
| 52 public: | 52 public: |
| 53 explicit CFWL_CheckBox(const CFWL_App* pApp); | 53 explicit CFWL_CheckBox(const CFWL_App* pApp); |
| 54 ~CFWL_CheckBox() override; | 54 ~CFWL_CheckBox() override; |
| 55 | 55 |
| 56 // CFWL_Widget | 56 // CFWL_Widget |
| 57 FWL_Type GetClassID() const override; | 57 FWL_Type GetClassID() const override; |
| 58 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override; | |
| 59 void Update() override; | 58 void Update() override; |
| 60 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; | 59 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; |
| 61 | 60 |
| 62 void OnProcessMessage(CFWL_Message* pMessage) override; | 61 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 63 void OnDrawWidget(CFX_Graphics* pGraphics, | 62 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 64 const CFX_Matrix* pMatrix) override; | 63 const CFX_Matrix* pMatrix) override; |
| 65 | 64 |
| 66 void SetBoxSize(FX_FLOAT fHeight); | 65 void SetBoxSize(FX_FLOAT fHeight); |
| 67 | 66 |
| 68 private: | 67 private: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 82 CFX_RectF m_rtBox; | 81 CFX_RectF m_rtBox; |
| 83 CFX_RectF m_rtCaption; | 82 CFX_RectF m_rtCaption; |
| 84 CFX_RectF m_rtFocus; | 83 CFX_RectF m_rtFocus; |
| 85 uint32_t m_dwTTOStyles; | 84 uint32_t m_dwTTOStyles; |
| 86 int32_t m_iTTOAlign; | 85 int32_t m_iTTOAlign; |
| 87 bool m_bBtnDown; | 86 bool m_bBtnDown; |
| 88 FX_FLOAT m_fBoxHeight; | 87 FX_FLOAT m_fBoxHeight; |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 #endif // XFA_FWL_CORE_CFWL_CHECKBOX_H_ | 90 #endif // XFA_FWL_CORE_CFWL_CHECKBOX_H_ |
| OLD | NEW |