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_IFWL_CHECKBOX_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_CHECKBOX_H_ |
8 #define XFA_FWL_CORE_IFWL_CHECKBOX_H_ | 8 #define XFA_FWL_CORE_IFWL_CHECKBOX_H_ |
9 | 9 |
10 #include "xfa/fwl/core/cfwl_event.h" | 10 #include "xfa/fwl/core/cfwl_event.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 #define FWL_STATE_CKB_Pressed (1 << (FWL_WGTSTATE_MAX + 1)) | 40 #define FWL_STATE_CKB_Pressed (1 << (FWL_WGTSTATE_MAX + 1)) |
41 #define FWL_STATE_CKB_Unchecked (0 << (FWL_WGTSTATE_MAX + 2)) | 41 #define FWL_STATE_CKB_Unchecked (0 << (FWL_WGTSTATE_MAX + 2)) |
42 #define FWL_STATE_CKB_Checked (1 << (FWL_WGTSTATE_MAX + 2)) | 42 #define FWL_STATE_CKB_Checked (1 << (FWL_WGTSTATE_MAX + 2)) |
43 #define FWL_STATE_CKB_Neutral (2 << (FWL_WGTSTATE_MAX + 2)) | 43 #define FWL_STATE_CKB_Neutral (2 << (FWL_WGTSTATE_MAX + 2)) |
44 #define FWL_STATE_CKB_CheckMask (3L << (FWL_WGTSTATE_MAX + 2)) | 44 #define FWL_STATE_CKB_CheckMask (3L << (FWL_WGTSTATE_MAX + 2)) |
45 | 45 |
46 class CFWL_MsgMouse; | 46 class CFWL_MsgMouse; |
47 class CFWL_WidgetProperties; | 47 class CFWL_WidgetProperties; |
48 class IFWL_Widget; | 48 class IFWL_Widget; |
49 | 49 |
50 FWL_EVENT_DEF(CFWL_EvtCkbCheckStateChanged, CFWL_EventType::CheckStateChanged) | |
51 | |
52 class IFWL_CheckBoxDP : public IFWL_DataProvider { | 50 class IFWL_CheckBoxDP : public IFWL_DataProvider { |
53 public: | 51 public: |
54 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0; | 52 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0; |
55 }; | 53 }; |
56 | 54 |
57 class IFWL_CheckBox : public IFWL_Widget { | 55 class IFWL_CheckBox : public IFWL_Widget { |
58 public: | 56 public: |
59 IFWL_CheckBox(const IFWL_App* app, | 57 IFWL_CheckBox(const IFWL_App* app, |
60 std::unique_ptr<CFWL_WidgetProperties> properties); | 58 std::unique_ptr<CFWL_WidgetProperties> properties); |
61 ~IFWL_CheckBox() override; | 59 ~IFWL_CheckBox() override; |
(...skipping 25 matching lines...) Expand all Loading... |
87 CFX_RectF m_rtClient; | 85 CFX_RectF m_rtClient; |
88 CFX_RectF m_rtBox; | 86 CFX_RectF m_rtBox; |
89 CFX_RectF m_rtCaption; | 87 CFX_RectF m_rtCaption; |
90 CFX_RectF m_rtFocus; | 88 CFX_RectF m_rtFocus; |
91 uint32_t m_dwTTOStyles; | 89 uint32_t m_dwTTOStyles; |
92 int32_t m_iTTOAlign; | 90 int32_t m_iTTOAlign; |
93 bool m_bBtnDown; | 91 bool m_bBtnDown; |
94 }; | 92 }; |
95 | 93 |
96 #endif // XFA_FWL_CORE_IFWL_CHECKBOX_H_ | 94 #endif // XFA_FWL_CORE_IFWL_CHECKBOX_H_ |
OLD | NEW |