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 #include "xfa/fwl/core/cfwl_checkbox.h" | 7 #include "xfa/fwl/core/cfwl_checkbox.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 int32_t CFWL_CheckBox::GetCheckState() { | 46 int32_t CFWL_CheckBox::GetCheckState() { |
47 return ToCheckBox(GetWidget())->GetCheckState(); | 47 return ToCheckBox(GetWidget())->GetCheckState(); |
48 } | 48 } |
49 | 49 |
50 FWL_Error CFWL_CheckBox::SetCheckState(int32_t iCheck) { | 50 FWL_Error CFWL_CheckBox::SetCheckState(int32_t iCheck) { |
51 return ToCheckBox(GetWidget())->SetCheckState(iCheck); | 51 return ToCheckBox(GetWidget())->SetCheckState(iCheck); |
52 } | 52 } |
53 | 53 |
54 FWL_Error CFWL_CheckBox::GetCaption(IFWL_Widget* pWidget, | 54 void CFWL_CheckBox::GetCaption(IFWL_Widget* pWidget, |
55 CFX_WideString& wsCaption) { | 55 CFX_WideString& wsCaption) { |
56 wsCaption = m_wsCaption; | 56 wsCaption = m_wsCaption; |
57 return FWL_Error::Succeeded; | |
58 } | 57 } |
59 | 58 |
60 FX_FLOAT CFWL_CheckBox::GetBoxSize(IFWL_Widget* pWidget) { | 59 FX_FLOAT CFWL_CheckBox::GetBoxSize(IFWL_Widget* pWidget) { |
61 return m_fBoxHeight; | 60 return m_fBoxHeight; |
62 } | 61 } |
OLD | NEW |