1 /*
2 * Copyright 2007-2011, Haiku, Inc. All rights reserved.
3 * Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
4 * Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
5 * Copyright 2010, Clemens Zeidler <haiku@clemens-zeidler.de>
6 * Distributed under the terms of the MIT License.
7 */
8
9
10 #include "Row.h"
11
12 #include "ALMLayout.h"
13 #include "Area.h"
14 #include "Tab.h"
15
16
17 using namespace LinearProgramming;
18
19
20 /**
21 * The top boundary of the row.
22 */
23 YTab*
Top() const24 Row::Top() const
25 {
26 return fTop;
27 }
28
29
30 /**
31 * The bottom boundary of the row.
32 */
33 YTab*
Bottom() const34 Row::Bottom() const
35 {
36 return fBottom;
37 }
38
39
40 /**
41 * Destructor.
42 * Removes the row from the specification.
43 */
~Row()44 Row::~Row()
45 {
46 delete fPrefSizeConstraint;
47 }
48
49
50 /**
51 * Constructor.
52 */
Row(LinearSpec * ls,YTab * top,YTab * bottom)53 Row::Row(LinearSpec* ls, YTab* top, YTab* bottom)
54 :
55 fTop(top),
56 fBottom(bottom),
57 fLS(ls),
58 fPrefSizeConstraint(NULL)
59 {
60
61 }
62
63