| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_FWL_CORE_IFWL_CONTENT_H_ | |
| 8 #define XFA_FWL_CORE_IFWL_CONTENT_H_ | |
| 9 | |
| 10 #include "xfa/fwl/core/fwl_widgetimp.h" | |
| 11 #include "xfa/fwl/core/ifwl_widget.h" | |
| 12 #include "core/fxcrt/include/fx_system.h" | |
| 13 #include "xfa/fwl/core/fwl_error.h" | |
| 14 | |
| 15 class IFWL_Content : public IFWL_Widget { | |
| 16 public: | |
| 17 static IFWL_Content* Create(); | |
| 18 FWL_ERR InsertWidget(IFWL_Widget* pChild, int32_t nIndex = -1); | |
| 19 FWL_ERR RemoveWidget(IFWL_Widget* pWidget); | |
| 20 FWL_ERR RemoveAllWidgets(); | |
| 21 FWL_ERR GetMinSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); | |
| 22 FWL_ERR SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight); | |
| 23 FWL_ERR GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); | |
| 24 FWL_ERR SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight); | |
| 25 | |
| 26 protected: | |
| 27 IFWL_Content(); | |
| 28 }; | |
| 29 | |
| 30 #endif // XFA_FWL_CORE_IFWL_CONTENT_H_ | |
| OLD | NEW |