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 _FWL_CONTENT_H
8 #define _FWL_CONTENT_H
9 class IFWL_Widget;
10 class IFWL_Content;
11 class IFWL_Content : public IFWL_Widget {
12  public:
13   static IFWL_Content* Create();
14   FWL_ERR InsertWidget(IFWL_Widget* pChild, int32_t nIndex = -1);
15   FWL_ERR RemoveWidget(IFWL_Widget* pWidget);
16   FWL_ERR RemoveAllWidgets();
17   FWL_ERR GetMinSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight);
18   FWL_ERR SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight);
19   FWL_ERR GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight);
20   FWL_ERR SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight);
21 
22  protected:
23   IFWL_Content();
24 };
25 #endif
26