ef93b55df4
quadratic solver if multiple Areas are in the same column/row. - Replace GetString by ToString. - some clean up git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40941 a95241bf-73f2-0310-859d-f6bbb57e9c96
54 lines
793 B
C++
54 lines
793 B
C++
/*
|
|
* Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef ROW_H
|
|
#define ROW_H
|
|
|
|
|
|
#include "Constraint.h"
|
|
#include "LinearSpec.h"
|
|
#include "Tab.h"
|
|
|
|
|
|
namespace BALM {
|
|
|
|
|
|
class Area;
|
|
class BALMLayout;
|
|
class RowColumnManager;
|
|
|
|
|
|
/**
|
|
* Represents a row defined by two y-tabs.
|
|
*/
|
|
class Row {
|
|
public:
|
|
~Row();
|
|
|
|
YTab* Top() const;
|
|
YTab* Bottom() const;
|
|
|
|
private:
|
|
Row(LinearSpec* ls, YTab* top, YTab* bottom);
|
|
|
|
LinearSpec* fLS;
|
|
YTab* fTop;
|
|
YTab* fBottom;
|
|
|
|
//! managed by RowColumnManager
|
|
Constraint* fPrefSizeConstraint;
|
|
BObjectList<Area> fAreas;
|
|
|
|
public:
|
|
friend class BALMLayout;
|
|
friend class BALM::RowColumnManager;
|
|
|
|
};
|
|
|
|
} // namespace BALM
|
|
|
|
using BALM::Row;
|
|
|
|
#endif // ROW_H
|