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

Side by Side Diff: xfa/include/fwl/core/fwl_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/include/fwl/core/fwl_form.h ('k') | xfa/include/fwl/core/fwl_note.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 XFA_INCLUDE_FWL_CORE_FWL_GRID_H_
8 #define XFA_INCLUDE_FWL_CORE_FWL_GRID_H_
9
10 #include "xfa/include/fwl/core/fwl_content.h"
11
12 class IFWL_Widget;
13
14 #define FWL_CLASS_Grid L"FWL_GRID"
15 #define FWL_CLASSHASH_Grid 3150298670
16 #define FWL_GRIDSTYLEEXT_ShowGridLines (1L << 0)
17
18 struct FWL_LAYOUTDATA {
19 FX_FLOAT fWidth;
20 FX_FLOAT fHeight;
21 };
22 enum FWL_GRIDUNIT {
23 FWL_GRIDUNIT_Auto = 0,
24 FWL_GRIDUNIT_Fixed,
25 FWL_GRIDUNIT_Scaled,
26 FWL_GRIDUNIT_Infinity,
27 };
28 enum FWL_GRIDMARGIN {
29 FWL_GRIDMARGIN_Left = 0,
30 FWL_GRIDMARGIN_Top,
31 FWL_GRIDMARGIN_Right,
32 FWL_GRIDMARGIN_Bottom,
33 };
34 enum FWL_GRIDSIZE {
35 FWL_GRIDSIZE_Width = 0,
36 FWL_GRIDSIZE_Height,
37 FWL_GRIDSIZE_MinWidth,
38 FWL_GRIDSIZE_MinHeight,
39 FWL_GRIDSIZE_MaxWidth,
40 FWL_GRIDSIZE_MaxHeight,
41 };
42
43 typedef struct FWL_HGRIDCOLROW_ { void* pData; } * FWL_HGRIDCOLROW;
44 class IFWL_Grid : public IFWL_Content {
45 public:
46 static IFWL_Grid* Create(const CFWL_WidgetImpProperties& properties);
47
48 FWL_HGRIDCOLROW InsertColRow(FX_BOOL bColumn, int32_t nIndex = -1);
49 int32_t CountColRows(FX_BOOL bColumn);
50 FWL_HGRIDCOLROW GetColRow(FX_BOOL bColumn, int32_t nIndex);
51 int32_t GetIndex(FWL_HGRIDCOLROW hColRow);
52 FX_FLOAT GetSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit);
53 FWL_ERR SetSize(FWL_HGRIDCOLROW hColRow, FX_FLOAT fSize, FWL_GRIDUNIT eUnit);
54 FX_FLOAT GetMinSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit);
55 FWL_ERR SetMinSize(FWL_HGRIDCOLROW hColRow,
56 FX_FLOAT fSize,
57 FWL_GRIDUNIT eUnit);
58 FX_FLOAT GetMaxSize(FWL_HGRIDCOLROW hColRow, FWL_GRIDUNIT& eUnit);
59 FWL_ERR SetMaxSize(FWL_HGRIDCOLROW hColRow,
60 FX_FLOAT fSize,
61 FWL_GRIDUNIT eUnit);
62 FX_BOOL DeleteColRow(FWL_HGRIDCOLROW hColRow);
63 FX_BOOL IsColumn(FWL_HGRIDCOLROW hColRow);
64 int32_t GetWidgetPos(IFWL_Widget* pWidget, FX_BOOL bColumn);
65 FWL_ERR SetWidgetPos(IFWL_Widget* pWidget, int32_t iPos, FX_BOOL bColumn);
66 int32_t GetWidgetSpan(IFWL_Widget* pWidget, FX_BOOL bColumn);
67 FWL_ERR SetWidgetSpan(IFWL_Widget* pWidget, int32_t iSpan, FX_BOOL bColumn);
68 FX_FLOAT GetWidgetSize(IFWL_Widget* pWidget,
69 FWL_GRIDSIZE eSize,
70 FWL_GRIDUNIT& eUnit);
71 FWL_ERR SetWidgetSize(IFWL_Widget* pWidget,
72 FWL_GRIDSIZE eSize,
73 FX_FLOAT fSize,
74 FWL_GRIDUNIT eUit);
75 FX_BOOL GetWidgetMargin(IFWL_Widget* pWidget,
76 FWL_GRIDMARGIN eMargin,
77 FX_FLOAT& fMargin);
78 FWL_ERR SetWidgetMargin(IFWL_Widget* pWidget,
79 FWL_GRIDMARGIN eMargin,
80 FX_FLOAT fMargin);
81 FWL_ERR RemoveWidgetMargin(IFWL_Widget* pWidget, FWL_GRIDMARGIN eMargin);
82 FX_FLOAT GetGridSize(FWL_GRIDSIZE eSize, FWL_GRIDUNIT& eUnit);
83 FWL_ERR SetGridSize(FWL_GRIDSIZE eSize, FX_FLOAT fSize, FWL_GRIDUNIT eUit);
84
85 protected:
86 IFWL_Grid();
87 };
88
89 #endif // XFA_INCLUDE_FWL_CORE_FWL_GRID_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/core/fwl_form.h ('k') | xfa/include/fwl/core/fwl_note.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698