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 _FWL_CHECKBOX_H | 7 #ifndef _FWL_CHECKBOX_H |
8 #define _FWL_CHECKBOX_H | 8 #define _FWL_CHECKBOX_H |
9 class CFWL_WidgetImpProperties; | 9 class CFWL_WidgetImpProperties; |
10 class IFWL_Widget; | 10 class IFWL_Widget; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 #define FWL_EVTHASH_CKB_CheckStateChanged 2503252963 | 63 #define FWL_EVTHASH_CKB_CheckStateChanged 2503252963 |
64 BEGIN_FWL_EVENT_DEF(CFWL_EvtCkbCheckStateChanged, | 64 BEGIN_FWL_EVENT_DEF(CFWL_EvtCkbCheckStateChanged, |
65 FWL_EVTHASH_CKB_CheckStateChanged) | 65 FWL_EVTHASH_CKB_CheckStateChanged) |
66 END_FWL_EVENT_DEF | 66 END_FWL_EVENT_DEF |
67 class IFWL_CheckBoxDP : public IFWL_DataProvider { | 67 class IFWL_CheckBoxDP : public IFWL_DataProvider { |
68 public: | 68 public: |
69 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0; | 69 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0; |
70 }; | 70 }; |
71 class IFWL_CheckBox : public IFWL_Widget { | 71 class IFWL_CheckBox : public IFWL_Widget { |
72 public: | 72 public: |
73 static IFWL_CheckBox* Create(); | 73 IFWL_CheckBox(); |
74 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | 74 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, |
75 IFWL_Widget* pOuter); | 75 IFWL_Widget* pOuter); |
76 int32_t GetCheckState(); | 76 int32_t GetCheckState(); |
77 FWL_ERR SetCheckState(int32_t iCheck); | 77 FWL_ERR SetCheckState(int32_t iCheck); |
78 | 78 |
79 protected: | |
80 IFWL_CheckBox(); | |
81 }; | 79 }; |
82 class IFWL_RadioButton : public IFWL_Widget { | 80 class IFWL_RadioButton : public IFWL_Widget { |
83 public: | 81 public: |
84 static IFWL_RadioButton* Create(); | 82 IFWL_RadioButton(); |
85 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | 83 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, |
86 IFWL_Widget* pOuter); | 84 IFWL_Widget* pOuter); |
87 int32_t GetCheckState(); | 85 int32_t GetCheckState(); |
88 FWL_ERR SetCheckState(int32_t iCheck); | 86 FWL_ERR SetCheckState(int32_t iCheck); |
89 | |
90 protected: | |
91 IFWL_RadioButton(); | |
92 }; | 87 }; |
93 #endif | 88 #endif |
OLD | NEW |