layout/xul/grid/nsGridRow.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/grid/nsGridRow.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,59 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/**
    1.10 + 
    1.11 +  Author:
    1.12 +  Eric D Vaughan
    1.13 +
    1.14 +**/
    1.15 +
    1.16 +#ifndef nsGridRow_h___
    1.17 +#define nsGridRow_h___
    1.18 +
    1.19 +#include "nsCoord.h"
    1.20 +
    1.21 +class nsGridLayout2;
    1.22 +class nsBoxLayoutState;
    1.23 +class nsIFrame;
    1.24 +
    1.25 +/**
    1.26 + * The row (or column) data structure in the grid cellmap.
    1.27 + */
    1.28 +class nsGridRow
    1.29 +{
    1.30 +public:
    1.31 +   nsGridRow();
    1.32 +   ~nsGridRow();
    1.33 +
    1.34 +   void Init(nsIFrame* aBox, bool aIsBogus);
    1.35 +
    1.36 +// accessors
    1.37 +   nsIFrame* GetBox()   { return mBox;          }
    1.38 +   bool IsPrefSet() { return (mPref != -1); }
    1.39 +   bool IsMinSet()  { return (mMin  != -1); }
    1.40 +   bool IsMaxSet()  { return (mMax  != -1); } 
    1.41 +   bool IsFlexSet() { return (mFlex != -1); }
    1.42 +   bool IsOffsetSet() { return (mTop != -1 && mBottom != -1); }
    1.43 +   bool IsCollapsed();
    1.44 +
    1.45 +public:
    1.46 +
    1.47 +   bool    mIsBogus;
    1.48 +   nsIFrame* mBox;
    1.49 +   nscoord mFlex;
    1.50 +   nscoord mPref;
    1.51 +   nscoord mMin;
    1.52 +   nscoord mMax;
    1.53 +   nscoord mTop;
    1.54 +   nscoord mBottom;
    1.55 +   nscoord mTopMargin;
    1.56 +   nscoord mBottomMargin;
    1.57 +
    1.58 +};
    1.59 +
    1.60 +
    1.61 +#endif
    1.62 +

mercurial