xref: /haiku/src/libs/alm/Row.cpp (revision 837b16251d4b2b6249ebcaa19bb319cbe82c6126)
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 "Tab.h"
14 
15 #include <SupportDefs.h>
16 
17 
18 using namespace LinearProgramming;
19 
20 
21 /**
22  * The top boundary of the row.
23  */
24 YTab*
25 Row::Top() const
26 {
27 	return fTop;
28 }
29 
30 
31 /**
32  * The bottom boundary of the row.
33  */
34 YTab*
35 Row::Bottom() const
36 {
37 	return fBottom;
38 }
39 
40 
41 /**
42  * Destructor.
43  * Removes the row from the specification.
44  */
45 Row::~Row()
46 {
47 	delete fPrefSizeConstraint;
48 }
49 
50 
51 /**
52  * Constructor.
53  */
54 Row::Row(LinearSpec* ls, YTab* top, YTab* bottom)
55 	:
56 	fLS(ls),
57 	fTop(top),
58 	fBottom(bottom),
59 	fPrefSizeConstraint(NULL)
60 {
61 
62 }
63 
64