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 "../../../foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
8 #include "include/fwl_targetimp.h" | 8 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" |
9 #include "include/fwl_noteimp.h" | 9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" |
10 #include "include/fwl_threadimp.h" | 10 #include "xfa/src/fwl/src/core/include/fwl_threadimp.h" |
11 #include "include/fwl_appimp.h" | 11 #include "xfa/src/fwl/src/core/include/fwl_appimp.h" |
12 #include "include/fwl_widgetmgrimp.h" | 12 #include "xfa/src/fwl/src/core/include/fwl_widgetmgrimp.h" |
13 #include "include/fwl_widgetimp.h" | 13 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" |
14 FWL_ERR IFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { | 14 FWL_ERR IFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { |
15 return static_cast<CFWL_WidgetImp*>(GetImpl()) | 15 return static_cast<CFWL_WidgetImp*>(GetImpl()) |
16 ->GetWidgetRect(rect, bAutoSize); | 16 ->GetWidgetRect(rect, bAutoSize); |
17 } | 17 } |
18 FWL_ERR IFWL_Widget::GetGlobalRect(CFX_RectF& rect) { | 18 FWL_ERR IFWL_Widget::GetGlobalRect(CFX_RectF& rect) { |
19 return static_cast<CFWL_WidgetImp*>(GetImpl())->GetGlobalRect(rect); | 19 return static_cast<CFWL_WidgetImp*>(GetImpl())->GetGlobalRect(rect); |
20 } | 20 } |
21 FWL_ERR IFWL_Widget::SetWidgetRect(const CFX_RectF& rect) { | 21 FWL_ERR IFWL_Widget::SetWidgetRect(const CFX_RectF& rect) { |
22 return static_cast<CFWL_WidgetImp*>(GetImpl())->SetWidgetRect(rect); | 22 return static_cast<CFWL_WidgetImp*>(GetImpl())->SetWidgetRect(rect); |
23 } | 23 } |
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable) { | 1088 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable) { |
1089 widget->SetStates(FWL_WGTSTATE_Disabled, !bEnable); | 1089 widget->SetStates(FWL_WGTSTATE_Disabled, !bEnable); |
1090 IFWL_WidgetMgr* widgetMgr = FWL_GetWidgetMgr(); | 1090 IFWL_WidgetMgr* widgetMgr = FWL_GetWidgetMgr(); |
1091 IFWL_Widget* child = widgetMgr->GetWidget(widget, FWL_WGTRELATION_FirstChild); | 1091 IFWL_Widget* child = widgetMgr->GetWidget(widget, FWL_WGTRELATION_FirstChild); |
1092 while (child) { | 1092 while (child) { |
1093 FWL_EnabelWidget(child, bEnable); | 1093 FWL_EnabelWidget(child, bEnable); |
1094 child = widgetMgr->GetWidget(child, FWL_WGTRELATION_NextSibling); | 1094 child = widgetMgr->GetWidget(child, FWL_WGTRELATION_NextSibling); |
1095 } | 1095 } |
1096 return FWL_ERR_Succeeded; | 1096 return FWL_ERR_Succeeded; |
1097 } | 1097 } |
OLD | NEW |