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_INCLUDE_FWL_CORE_FWL_CONTENT_H_ | 7 #ifndef XFA_INCLUDE_FWL_CORE_FWL_CONTENT_H_ |
8 #define XFA_INCLUDE_FWL_CORE_FWL_CONTENT_H_ | 8 #define XFA_INCLUDE_FWL_CORE_FWL_CONTENT_H_ |
9 | 9 |
10 #include "xfa/src/fwl/core/fwl_widgetimp.h" | 10 #include "xfa/fwl/core/fwl_widgetimp.h" |
11 | 11 |
12 class IFWL_Content : public IFWL_Widget { | 12 class IFWL_Content : public IFWL_Widget { |
13 public: | 13 public: |
14 static IFWL_Content* Create(); | 14 static IFWL_Content* Create(); |
15 FWL_ERR InsertWidget(IFWL_Widget* pChild, int32_t nIndex = -1); | 15 FWL_ERR InsertWidget(IFWL_Widget* pChild, int32_t nIndex = -1); |
16 FWL_ERR RemoveWidget(IFWL_Widget* pWidget); | 16 FWL_ERR RemoveWidget(IFWL_Widget* pWidget); |
17 FWL_ERR RemoveAllWidgets(); | 17 FWL_ERR RemoveAllWidgets(); |
18 FWL_ERR GetMinSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); | 18 FWL_ERR GetMinSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); |
19 FWL_ERR SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight); | 19 FWL_ERR SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight); |
20 FWL_ERR GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); | 20 FWL_ERR GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); |
21 FWL_ERR SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight); | 21 FWL_ERR SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight); |
22 | 22 |
23 protected: | 23 protected: |
24 IFWL_Content(); | 24 IFWL_Content(); |
25 }; | 25 }; |
26 | 26 |
27 #endif // XFA_INCLUDE_FWL_CORE_FWL_CONTENT_H_ | 27 #endif // XFA_INCLUDE_FWL_CORE_FWL_CONTENT_H_ |
OLD | NEW |