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