Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: xfa/fwl/core/ifwl_grid.h

Issue 1827923002: Move xfa/include/fwl/{core,basewidget} to xfa/fwl/{core,basewidget}. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/ifwl_form.h ('k') | xfa/fwl/core/ifwl_notedriver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INCLUDE_FWL_CORE_FWL_GRID_H_ 7 #ifndef XFA_FWL_CORE_IFWL_GRID_H_
8 #define XFA_INCLUDE_FWL_CORE_FWL_GRID_H_ 8 #define XFA_FWL_CORE_IFWL_GRID_H_
9 9
10 #include "xfa/include/fwl/core/fwl_content.h" 10 #include "xfa/fwl/core/ifwl_content.h"
11 11
12 class IFWL_Widget; 12 class IFWL_Widget;
13 13
14 #define FWL_CLASS_Grid L"FWL_GRID" 14 #define FWL_CLASS_Grid L"FWL_GRID"
15 #define FWL_CLASSHASH_Grid 3150298670 15 #define FWL_CLASSHASH_Grid 3150298670
16 #define FWL_GRIDSTYLEEXT_ShowGridLines (1L << 0) 16 #define FWL_GRIDSTYLEEXT_ShowGridLines (1L << 0)
17 17
18 struct FWL_LAYOUTDATA { 18 struct FWL_LAYOUTDATA {
19 FX_FLOAT fWidth; 19 FX_FLOAT fWidth;
20 FX_FLOAT fHeight; 20 FX_FLOAT fHeight;
21 }; 21 };
22
22 enum FWL_GRIDUNIT { 23 enum FWL_GRIDUNIT {
23 FWL_GRIDUNIT_Auto = 0, 24 FWL_GRIDUNIT_Auto = 0,
24 FWL_GRIDUNIT_Fixed, 25 FWL_GRIDUNIT_Fixed,
25 FWL_GRIDUNIT_Scaled, 26 FWL_GRIDUNIT_Scaled,
26 FWL_GRIDUNIT_Infinity, 27 FWL_GRIDUNIT_Infinity,
27 }; 28 };
29
28 enum FWL_GRIDMARGIN { 30 enum FWL_GRIDMARGIN {
29 FWL_GRIDMARGIN_Left = 0, 31 FWL_GRIDMARGIN_Left = 0,
30 FWL_GRIDMARGIN_Top, 32 FWL_GRIDMARGIN_Top,
31 FWL_GRIDMARGIN_Right, 33 FWL_GRIDMARGIN_Right,
32 FWL_GRIDMARGIN_Bottom, 34 FWL_GRIDMARGIN_Bottom,
33 }; 35 };
36
34 enum FWL_GRIDSIZE { 37 enum FWL_GRIDSIZE {
35 FWL_GRIDSIZE_Width = 0, 38 FWL_GRIDSIZE_Width = 0,
36 FWL_GRIDSIZE_Height, 39 FWL_GRIDSIZE_Height,
37 FWL_GRIDSIZE_MinWidth, 40 FWL_GRIDSIZE_MinWidth,
38 FWL_GRIDSIZE_MinHeight, 41 FWL_GRIDSIZE_MinHeight,
39 FWL_GRIDSIZE_MaxWidth, 42 FWL_GRIDSIZE_MaxWidth,
40 FWL_GRIDSIZE_MaxHeight, 43 FWL_GRIDSIZE_MaxHeight,
41 }; 44 };
42 45
43 typedef struct FWL_HGRIDCOLROW_ { void* pData; } * FWL_HGRIDCOLROW; 46 typedef struct FWL_HGRIDCOLROW_ { void* pData; } * FWL_HGRIDCOLROW;
47
44 class IFWL_Grid : public IFWL_Content { 48 class IFWL_Grid : public IFWL_Content {
45 public: 49 public:
46 static IFWL_Grid* Create(const CFWL_WidgetImpProperties& properties); 50 static IFWL_Grid* Create(const CFWL_WidgetImpProperties& properties);
47 51
48 FWL_HGRIDCOLROW InsertColRow(FX_BOOL bColumn, int32_t nIndex = -1); 52 FWL_HGRIDCOLROW InsertColRow(FX_BOOL bColumn, int32_t nIndex = -1);
49 int32_t CountColRows(FX_BOOL bColumn); 53 int32_t CountColRows(FX_BOOL bColumn);
50 FWL_HGRIDCOLROW GetColRow(FX_BOOL bColumn, int32_t nIndex); 54 FWL_HGRIDCOLROW GetColRow(FX_BOOL bColumn, int32_t nIndex);
51 int32_t GetIndex(FWL_HGRIDCOLROW hColRow); 55 int32_t GetIndex(FWL_HGRIDCOLROW hColRow);
52 FX_FLOAT GetSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit); 56 FX_FLOAT GetSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit);
53 FWL_ERR SetSize(FWL_HGRIDCOLROW hColRow, FX_FLOAT fSize, FWL_GRIDUNIT eUnit); 57 FWL_ERR SetSize(FWL_HGRIDCOLROW hColRow, FX_FLOAT fSize, FWL_GRIDUNIT eUnit);
(...skipping 25 matching lines...) Expand all
79 FWL_GRIDMARGIN eMargin, 83 FWL_GRIDMARGIN eMargin,
80 FX_FLOAT fMargin); 84 FX_FLOAT fMargin);
81 FWL_ERR RemoveWidgetMargin(IFWL_Widget* pWidget, FWL_GRIDMARGIN eMargin); 85 FWL_ERR RemoveWidgetMargin(IFWL_Widget* pWidget, FWL_GRIDMARGIN eMargin);
82 FX_FLOAT GetGridSize(FWL_GRIDSIZE eSize, FWL_GRIDUNIT& eUnit); 86 FX_FLOAT GetGridSize(FWL_GRIDSIZE eSize, FWL_GRIDUNIT& eUnit);
83 FWL_ERR SetGridSize(FWL_GRIDSIZE eSize, FX_FLOAT fSize, FWL_GRIDUNIT eUit); 87 FWL_ERR SetGridSize(FWL_GRIDSIZE eSize, FX_FLOAT fSize, FWL_GRIDUNIT eUit);
84 88
85 protected: 89 protected:
86 IFWL_Grid(); 90 IFWL_Grid();
87 }; 91 };
88 92
89 #endif // XFA_INCLUDE_FWL_CORE_FWL_GRID_H_ 93 #endif // XFA_FWL_CORE_IFWL_GRID_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_form.h ('k') | xfa/fwl/core/ifwl_notedriver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698