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 XFA_INCLUDE_FWL_CORE_FWL_GRID_H_ |
8 #define _FWL_GRID_H | 8 #define XFA_INCLUDE_FWL_CORE_FWL_GRID_H_ |
| 9 |
9 class IFWL_Widget; | 10 class IFWL_Widget; |
10 class IFWL_Content; | 11 class IFWL_Content; |
11 #define FWL_CLASS_Grid L"FWL_GRID" | 12 #define FWL_CLASS_Grid L"FWL_GRID" |
12 #define FWL_CLASSHASH_Grid 3150298670 | 13 #define FWL_CLASSHASH_Grid 3150298670 |
13 #define FWL_GRIDSTYLEEXT_ShowGridLines (1L << 0) | 14 #define FWL_GRIDSTYLEEXT_ShowGridLines (1L << 0) |
14 struct FWL_LAYOUTDATA { | 15 struct FWL_LAYOUTDATA { |
15 FX_FLOAT fWidth; | 16 FX_FLOAT fWidth; |
16 FX_FLOAT fHeight; | 17 FX_FLOAT fHeight; |
17 }; | 18 }; |
18 enum FWL_GRIDUNIT { | 19 enum FWL_GRIDUNIT { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 FWL_ERR SetWidgetMargin(IFWL_Widget* pWidget, | 74 FWL_ERR SetWidgetMargin(IFWL_Widget* pWidget, |
74 FWL_GRIDMARGIN eMargin, | 75 FWL_GRIDMARGIN eMargin, |
75 FX_FLOAT fMargin); | 76 FX_FLOAT fMargin); |
76 FWL_ERR RemoveWidgetMargin(IFWL_Widget* pWidget, FWL_GRIDMARGIN eMargin); | 77 FWL_ERR RemoveWidgetMargin(IFWL_Widget* pWidget, FWL_GRIDMARGIN eMargin); |
77 FX_FLOAT GetGridSize(FWL_GRIDSIZE eSize, FWL_GRIDUNIT& eUnit); | 78 FX_FLOAT GetGridSize(FWL_GRIDSIZE eSize, FWL_GRIDUNIT& eUnit); |
78 FWL_ERR SetGridSize(FWL_GRIDSIZE eSize, FX_FLOAT fSize, FWL_GRIDUNIT eUit); | 79 FWL_ERR SetGridSize(FWL_GRIDSIZE eSize, FX_FLOAT fSize, FWL_GRIDUNIT eUit); |
79 | 80 |
80 protected: | 81 protected: |
81 IFWL_Grid(); | 82 IFWL_Grid(); |
82 }; | 83 }; |
83 #endif | 84 |
| 85 #endif // XFA_INCLUDE_FWL_CORE_FWL_GRID_H_ |
OLD | NEW |