Merge from layout management branch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _ABSTRACT_LAYOUT_ITEM_H
|
||||
#define _ABSTRACT_LAYOUT_ITEM_H
|
||||
|
||||
#include <Alignment.h>
|
||||
#include <LayoutItem.h>
|
||||
#include <Size.h>
|
||||
|
||||
|
||||
class BAbstractLayoutItem : public BLayoutItem {
|
||||
public:
|
||||
BAbstractLayoutItem();
|
||||
virtual ~BAbstractLayoutItem();
|
||||
|
||||
virtual BSize MinSize();
|
||||
virtual BSize MaxSize();
|
||||
virtual BSize PreferredSize();
|
||||
virtual BAlignment Alignment();
|
||||
|
||||
virtual void SetExplicitMinSize(BSize size);
|
||||
virtual void SetExplicitMaxSize(BSize size);
|
||||
virtual void SetExplicitPreferredSize(BSize size);
|
||||
virtual void SetExplicitAlignment(BAlignment alignment);
|
||||
|
||||
virtual BSize BaseMinSize();
|
||||
virtual BSize BaseMaxSize();
|
||||
virtual BSize BasePreferredSize();
|
||||
virtual BAlignment BaseAlignment();
|
||||
|
||||
private:
|
||||
BSize fMinSize;
|
||||
BSize fMaxSize;
|
||||
BSize fPreferredSize;
|
||||
BAlignment fAlignment;
|
||||
};
|
||||
|
||||
#endif // _ABSTRACT_LAYOUT_ITEM_H
|
||||
Reference in New Issue
Block a user