Give the area an id.

This commit is contained in:
czeidler
2012-05-03 08:44:13 +12:00
committed by Alex Wilson
parent b7630c4c98
commit c3e57dc36d
4 changed files with 41 additions and 0 deletions
+1
View File
@@ -65,6 +65,7 @@ public:
void SetSpacing(float spacing);
float Spacing() const;
Area* AreaFor(int32 id) const;
Area* AreaFor(const BView* view) const;
Area* AreaFor(const BLayoutItem* item) const;
int32 CountAreas() const;
+4
View File
@@ -65,6 +65,9 @@ class Area {
public:
~Area();
int32 ID() const;
void SetID(int32 id);
BLayoutItem* Item();
XTab* Left() const;
@@ -121,6 +124,7 @@ private:
void _UpdateMaxSizeConstraint(BSize max);
private:
BLayoutItem* fLayoutItem;
int32 fID;
LinearSpec* fLS;