2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
Author:
|
|
|
|
Eric D Vaughan
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef nsGridRow_h___
|
|
|
|
#define nsGridRow_h___
|
|
|
|
|
2012-08-05 20:00:56 -07:00
|
|
|
#include "nsCoord.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
class nsGridLayout2;
|
|
|
|
class nsBoxLayoutState;
|
2012-08-05 20:00:56 -07:00
|
|
|
class nsIFrame;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The row (or column) data structure in the grid cellmap.
|
|
|
|
*/
|
|
|
|
class nsGridRow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsGridRow();
|
|
|
|
~nsGridRow();
|
2012-08-05 20:00:57 -07:00
|
|
|
|
|
|
|
void Init(nsIFrame* aBox, bool aIsBogus);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// accessors
|
2012-08-05 20:00:57 -07:00
|
|
|
nsIFrame* GetBox() { return mBox; }
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsPrefSet() { return (mPref != -1); }
|
|
|
|
bool IsMinSet() { return (mMin != -1); }
|
|
|
|
bool IsMaxSet() { return (mMax != -1); }
|
|
|
|
bool IsFlexSet() { return (mFlex != -1); }
|
|
|
|
bool IsOffsetSet() { return (mTop != -1 && mBottom != -1); }
|
2011-06-15 14:03:49 -07:00
|
|
|
bool IsCollapsed();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mIsBogus;
|
2012-08-05 20:00:57 -07:00
|
|
|
nsIFrame* mBox;
|
2007-03-22 10:30:00 -07:00
|
|
|
nscoord mFlex;
|
|
|
|
nscoord mPref;
|
|
|
|
nscoord mMin;
|
|
|
|
nscoord mMax;
|
|
|
|
nscoord mTop;
|
|
|
|
nscoord mBottom;
|
|
|
|
nscoord mTopMargin;
|
|
|
|
nscoord mBottomMargin;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|