/* * Copyright 2006, Haiku Inc. * Distributed under the terms of the MIT License. */ #ifndef _VIEW_LAYOUT_ITEM_H #define _VIEW_LAYOUT_ITEM_H #include class BViewLayoutItem : public BLayoutItem { public: BViewLayoutItem(BView* view); virtual ~BViewLayoutItem(); 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 bool IsVisible(); virtual void SetVisible(bool visible); virtual BRect Frame(); virtual void SetFrame(BRect frame); virtual bool HasHeightForWidth(); virtual void GetHeightForWidth(float width, float* min, float* max, float* preferred); virtual BView* View(); virtual void InvalidateLayout(); private: BView* fView; }; #endif // _VIEW_LAYOUT_ITEM_H