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_IMP_H 8 #define _FWL_CONTENT_IMP_H 9 class CFWL_WidgetImp; 10 class IFWL_Widget; 11 class CFWL_ContentImp; 12 class CFWL_ContentImp : public CFWL_WidgetImp { 13 public: 14 CFWL_ContentImp(const CFWL_WidgetImpProperties& properties, 15 IFWL_Widget* pOuter); 16 17 virtual ~CFWL_ContentImp(); 18 virtual FWL_ERR InsertWidget(IFWL_Widget* pChild, int32_t nIndex = -1); 19 virtual FWL_ERR RemoveWidget(IFWL_Widget* pWidget); 20 virtual 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 FX_FLOAT m_fWidthMin; 28 FX_FLOAT m_fWidthMax; 29 FX_FLOAT m_fHeightMin; 30 FX_FLOAT m_fHeightMax; 31 }; 32 #endif 33