| 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 _FWL_GRID_H | 7 #ifndef _FWL_GRID_H |
| 8 #define _FWL_GRID_H | 8 #define _FWL_GRID_H |
| 9 class IFWL_Widget; | 9 class IFWL_Widget; |
| 10 class IFWL_Content; | 10 class IFWL_Content; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 FWL_GRIDSIZE_Height, | 33 FWL_GRIDSIZE_Height, |
| 34 FWL_GRIDSIZE_MinWidth, | 34 FWL_GRIDSIZE_MinWidth, |
| 35 FWL_GRIDSIZE_MinHeight, | 35 FWL_GRIDSIZE_MinHeight, |
| 36 FWL_GRIDSIZE_MaxWidth, | 36 FWL_GRIDSIZE_MaxWidth, |
| 37 FWL_GRIDSIZE_MaxHeight, | 37 FWL_GRIDSIZE_MaxHeight, |
| 38 }; | 38 }; |
| 39 typedef struct _FWL_HGRIDCOLROW { void* pData; } * FWL_HGRIDCOLROW; | 39 typedef struct _FWL_HGRIDCOLROW { void* pData; } * FWL_HGRIDCOLROW; |
| 40 class IFWL_Grid : public IFWL_Content { | 40 class IFWL_Grid : public IFWL_Content { |
| 41 public: | 41 public: |
| 42 static IFWL_Grid* Create(); | 42 static IFWL_Grid* Create(); |
| 43 FWL_ERR Initialize(); | |
| 44 FWL_ERR Initialize(CFWL_WidgetImpProperties& properties); | 43 FWL_ERR Initialize(CFWL_WidgetImpProperties& properties); |
| 45 | 44 |
| 46 FWL_HGRIDCOLROW InsertColRow(FX_BOOL bColumn, int32_t nIndex = -1); | 45 FWL_HGRIDCOLROW InsertColRow(FX_BOOL bColumn, int32_t nIndex = -1); |
| 47 int32_t CountColRows(FX_BOOL bColumn); | 46 int32_t CountColRows(FX_BOOL bColumn); |
| 48 FWL_HGRIDCOLROW GetColRow(FX_BOOL bColumn, int32_t nIndex); | 47 FWL_HGRIDCOLROW GetColRow(FX_BOOL bColumn, int32_t nIndex); |
| 49 int32_t GetIndex(FWL_HGRIDCOLROW hColRow); | 48 int32_t GetIndex(FWL_HGRIDCOLROW hColRow); |
| 50 FX_FLOAT GetSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit); | 49 FX_FLOAT GetSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit); |
| 51 FWL_ERR SetSize(FWL_HGRIDCOLROW hColRow, FX_FLOAT fSize, FWL_GRIDUNIT eUnit); | 50 FWL_ERR SetSize(FWL_HGRIDCOLROW hColRow, FX_FLOAT fSize, FWL_GRIDUNIT eUnit); |
| 52 FX_FLOAT GetMinSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit); | 51 FX_FLOAT GetMinSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit); |
| 53 FWL_ERR SetMinSize(FWL_HGRIDCOLROW hColRow, | 52 FWL_ERR SetMinSize(FWL_HGRIDCOLROW hColRow, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 77 FWL_GRIDMARGIN eMargin, | 76 FWL_GRIDMARGIN eMargin, |
| 78 FX_FLOAT fMargin); | 77 FX_FLOAT fMargin); |
| 79 FWL_ERR RemoveWidgetMargin(IFWL_Widget* pWidget, FWL_GRIDMARGIN eMargin); | 78 FWL_ERR RemoveWidgetMargin(IFWL_Widget* pWidget, FWL_GRIDMARGIN eMargin); |
| 80 FX_FLOAT GetGridSize(FWL_GRIDSIZE eSize, FWL_GRIDUNIT& eUnit); | 79 FX_FLOAT GetGridSize(FWL_GRIDSIZE eSize, FWL_GRIDUNIT& eUnit); |
| 81 FWL_ERR SetGridSize(FWL_GRIDSIZE eSize, FX_FLOAT fSize, FWL_GRIDUNIT eUit); | 80 FWL_ERR SetGridSize(FWL_GRIDSIZE eSize, FX_FLOAT fSize, FWL_GRIDUNIT eUit); |
| 82 | 81 |
| 83 protected: | 82 protected: |
| 84 IFWL_Grid(); | 83 IFWL_Grid(); |
| 85 }; | 84 }; |
| 86 #endif | 85 #endif |
| OLD | NEW |