Give the area an id.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user