- 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:
@@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
namespace BALM {
|
||||
|
||||
|
||||
/*!
|
||||
* A GUI layout engine using the Auckland Layout Model (ALM).
|
||||
*/
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user