2006-08-26 20:21:15 +04:00
|
|
|
/*
|
2009-08-27 15:12:41 +04:00
|
|
|
* Copyright 2006, Haiku, Inc. All rights reserved.
|
2006-08-26 20:21:15 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _SPLIT_LAYOUT_BUILDER_H
|
|
|
|
#define _SPLIT_LAYOUT_BUILDER_H
|
|
|
|
|
|
|
|
#include <SplitView.h>
|
|
|
|
|
|
|
|
class BSplitLayoutBuilder {
|
|
|
|
public:
|
|
|
|
BSplitLayoutBuilder(
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation = B_HORIZONTAL,
|
2010-09-03 02:58:24 +04:00
|
|
|
float spacing = B_USE_DEFAULT_SPACING);
|
2006-08-26 20:21:15 +04:00
|
|
|
BSplitLayoutBuilder(BSplitView* view);
|
|
|
|
|
|
|
|
BSplitView* SplitView() const;
|
|
|
|
BSplitLayoutBuilder& GetSplitView(BSplitView** view);
|
|
|
|
|
|
|
|
BSplitLayoutBuilder& Add(BView* view);
|
|
|
|
BSplitLayoutBuilder& Add(BView* view, float weight);
|
|
|
|
BSplitLayoutBuilder& Add(BLayoutItem* item);
|
|
|
|
BSplitLayoutBuilder& Add(BLayoutItem* item, float weight);
|
|
|
|
|
|
|
|
BSplitLayoutBuilder& SetCollapsible(bool collapsible);
|
|
|
|
|
2009-06-23 14:56:22 +04:00
|
|
|
BSplitLayoutBuilder& SetInsets(float left, float top, float right,
|
|
|
|
float bottom);
|
|
|
|
|
2006-08-26 20:21:15 +04:00
|
|
|
operator BSplitView*();
|
|
|
|
|
|
|
|
private:
|
|
|
|
BSplitView* fView;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _SPLIT_LAYOUT_BUILDER_H
|