Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
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/. */
6 /**
8 Author:
9 Eric D Vaughan
11 **/
13 #ifndef nsGridRow_h___
14 #define nsGridRow_h___
16 #include "nsCoord.h"
18 class nsGridLayout2;
19 class nsBoxLayoutState;
20 class nsIFrame;
22 /**
23 * The row (or column) data structure in the grid cellmap.
24 */
25 class nsGridRow
26 {
27 public:
28 nsGridRow();
29 ~nsGridRow();
31 void Init(nsIFrame* aBox, bool aIsBogus);
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();
42 public:
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;
55 };
58 #endif