Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / include / fwl / core / fwl_content.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FWL_CONTENT_H\r
8 #define _FWL_CONTENT_H\r
9 class IFWL_Widget;\r
10 class IFWL_Content;\r
11 class IFWL_Content : public IFWL_Widget\r
12 {\r
13 public:\r
14     static IFWL_Content* Create();\r
15     FWL_ERR             Initialize();\r
16     FWL_ERR             InsertWidget(IFWL_Widget *pChild, FX_INT32 nIndex = -1);\r
17     FWL_ERR             RemoveWidget(IFWL_Widget *pWidget);\r
18     FWL_ERR             RemoveAllWidgets();\r
19     FWL_ERR             GetMinSize(FX_FLOAT &fWidth, FX_FLOAT &fHeight);\r
20     FWL_ERR             SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight);\r
21     FWL_ERR             GetMaxSize(FX_FLOAT &fWidth, FX_FLOAT &fHeight);\r
22     FWL_ERR             SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight);\r
23 protected:\r
24     IFWL_Content();\r
25     virtual ~IFWL_Content();\r
26 };\r
27 #endif\r