| 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_FWL_CORE_FWL_GRIDIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_GRIDIMP_H_ |
| 8 #define XFA_FWL_CORE_FWL_GRIDIMP_H_ | 8 #define XFA_FWL_CORE_FWL_GRIDIMP_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/fwl_contentimp.h" | 10 #include "xfa/fwl/core/fwl_contentimp.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 m_Size[FWL_GRIDSIZE_MinHeight].fLength = 0; | 58 m_Size[FWL_GRIDSIZE_MinHeight].fLength = 0; |
| 59 m_Size[FWL_GRIDSIZE_MaxHeight].eUnit = FWL_GRIDUNIT_Infinity; | 59 m_Size[FWL_GRIDSIZE_MaxHeight].eUnit = FWL_GRIDUNIT_Infinity; |
| 60 m_Size[FWL_GRIDSIZE_MaxHeight].fLength = 0; | 60 m_Size[FWL_GRIDSIZE_MaxHeight].fLength = 0; |
| 61 m_Margin[0] = m_Margin[1] = m_Margin[2] = m_Margin[3] = 0; | 61 m_Margin[0] = m_Margin[1] = m_Margin[2] = m_Margin[3] = 0; |
| 62 } | 62 } |
| 63 int32_t m_iColumn; | 63 int32_t m_iColumn; |
| 64 int32_t m_iColumnSpan; | 64 int32_t m_iColumnSpan; |
| 65 int32_t m_iRow; | 65 int32_t m_iRow; |
| 66 int32_t m_iRowSpan; | 66 int32_t m_iRowSpan; |
| 67 CFWL_GridLength m_Size[6]; | 67 CFWL_GridLength m_Size[6]; |
| 68 FX_DWORD m_dwMarginFlag; | 68 uint32_t m_dwMarginFlag; |
| 69 FX_FLOAT m_Margin[4]; | 69 FX_FLOAT m_Margin[4]; |
| 70 FX_FLOAT m_fActualWidth; | 70 FX_FLOAT m_fActualWidth; |
| 71 FX_FLOAT m_fActualHeight; | 71 FX_FLOAT m_fActualHeight; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 class CFWL_GridImp : public CFWL_ContentImp { | 74 class CFWL_GridImp : public CFWL_ContentImp { |
| 75 public: | 75 public: |
| 76 CFWL_GridImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); | 76 CFWL_GridImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); |
| 77 virtual ~CFWL_GridImp(); | 77 virtual ~CFWL_GridImp(); |
| 78 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; | 78 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; |
| 79 virtual FX_DWORD GetClassID() const; | 79 virtual uint32_t GetClassID() const; |
| 80 virtual FWL_ERR Initialize(); | 80 virtual FWL_ERR Initialize(); |
| 81 virtual FWL_ERR Finalize(); | 81 virtual FWL_ERR Finalize(); |
| 82 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); | 82 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); |
| 83 virtual FWL_ERR SetWidgetRect(const CFX_RectF& rect); | 83 virtual FWL_ERR SetWidgetRect(const CFX_RectF& rect); |
| 84 virtual FWL_ERR Update(); | 84 virtual FWL_ERR Update(); |
| 85 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, | 85 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, |
| 86 const CFX_Matrix* pMatrix = NULL); | 86 const CFX_Matrix* pMatrix = NULL); |
| 87 | 87 |
| 88 virtual FWL_ERR InsertWidget(IFWL_Widget* pChild, int32_t nIndex = -1); | 88 virtual FWL_ERR InsertWidget(IFWL_Widget* pChild, int32_t nIndex = -1); |
| 89 virtual FWL_ERR RemoveWidget(IFWL_Widget* pWidget); | 89 virtual FWL_ERR RemoveWidget(IFWL_Widget* pWidget); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 CFWL_GridImpDelegate(CFWL_GridImp* pOwner); | 188 CFWL_GridImpDelegate(CFWL_GridImp* pOwner); |
| 189 int32_t OnProcessMessage(CFWL_Message* pMessage) override; | 189 int32_t OnProcessMessage(CFWL_Message* pMessage) override; |
| 190 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, | 190 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, |
| 191 const CFX_Matrix* pMatrix = NULL) override; | 191 const CFX_Matrix* pMatrix = NULL) override; |
| 192 | 192 |
| 193 protected: | 193 protected: |
| 194 CFWL_GridImp* m_pOwner; | 194 CFWL_GridImp* m_pOwner; |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 #endif // XFA_FWL_CORE_FWL_GRIDIMP_H_ | 197 #endif // XFA_FWL_CORE_FWL_GRIDIMP_H_ |
| OLD | NEW |