layout/xul/grid/nsGridRow.h

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:ccaf3d23fd1f
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 /**
7
8 Author:
9 Eric D Vaughan
10
11 **/
12
13 #ifndef nsGridRow_h___
14 #define nsGridRow_h___
15
16 #include "nsCoord.h"
17
18 class nsGridLayout2;
19 class nsBoxLayoutState;
20 class nsIFrame;
21
22 /**
23 * The row (or column) data structure in the grid cellmap.
24 */
25 class nsGridRow
26 {
27 public:
28 nsGridRow();
29 ~nsGridRow();
30
31 void Init(nsIFrame* aBox, bool aIsBogus);
32
33 // accessors
34 nsIFrame* GetBox() { return mBox; }
35 bool IsPrefSet() { return (mPref != -1); }
36 bool IsMinSet() { return (mMin != -1); }
37 bool IsMaxSet() { return (mMax != -1); }
38 bool IsFlexSet() { return (mFlex != -1); }
39 bool IsOffsetSet() { return (mTop != -1 && mBottom != -1); }
40 bool IsCollapsed();
41
42 public:
43
44 bool mIsBogus;
45 nsIFrame* mBox;
46 nscoord mFlex;
47 nscoord mPref;
48 nscoord mMin;
49 nscoord mMax;
50 nscoord mTop;
51 nscoord mBottom;
52 nscoord mTopMargin;
53 nscoord mBottomMargin;
54
55 };
56
57
58 #endif
59

mercurial