- Add some checks if the Area is initialized.

- Init some more variables in the constructor.
- Rename HasSame*As to Set*As. The old one is more a question. Also add an optional factor and remove the HasSameSizeAs function which tempt the user to leak a BList.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38790 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2010-09-23 00:04:08 +00:00
parent a2336b86cc
commit 40d939a43f
3 changed files with 45 additions and 43 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
namespace BALM {
/*!
* A GUI layout engine using the Auckland Layout Model (ALM).
*/
+2 -3
View File
@@ -72,9 +72,8 @@ public:
operator BString() const;
void GetString(BString& string) const;
Constraint* HasSameWidthAs(Area* area);
Constraint* HasSameHeightAs(Area* area);
BList* HasSameSizeAs(Area* area);
Constraint* SetWidthAs(Area* area, float factor = 1.0f);
Constraint* SetHeightAs(Area* area, float factor = 1.0f);
void InvalidateSizeConstraints();